1+ name : Claude Code
2+
3+ on :
4+ issue_comment :
5+ types :
6+ - created
7+ pull_request_review_comment :
8+ types :
9+ - created
10+ issues :
11+ types :
12+ - opened
13+ - assigned
14+ pull_request_review :
15+ types :
16+ - submitted
17+
18+ jobs :
19+ claude :
20+ if : |
21+ (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude') && !contains(github.event.comment.body, '@claude /review')) ||
22+ (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude') && !contains(github.event.comment.body, '@claude /review')) ||
23+ (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude') && !contains(github.event.review.body, '@claude /review')) ||
24+ (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
25+ runs-on : ubuntu-24.04
26+ permissions :
27+ contents : write
28+ pull-requests : write
29+ issues : write
30+ id-token : write
31+ actions : read
32+ steps :
33+ - name : Checkout repository
34+ uses : actions/checkout@v4
35+ with :
36+ fetch-depth : 1
37+
38+ - name : Install task
39+ run : |
40+ curl -s https://taskfile.dev/install.sh | sh -s -- -b /usr/local/bin v3.44.1
41+
42+ - name : Run Claude Code
43+ id : claude
44+ uses : anthropics/claude-code-action@beta
45+ with :
46+ claude_code_oauth_token : ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
47+ additional_permissions : |
48+ actions: read
49+ use_commit_signing : true
50+ base_branch : main
51+ branch_prefix : ' claude/'
52+ custom_instructions : |
53+ IMPORTANT: You must NEVER push directly to the main branch. Always:
54+ 1. Create a new feature branch (claude/feature-name)
55+ 2. Make your changes on the feature branch
56+ 3. Open a pull request to main
57+ 4. Wait for review and approval before merging
58+
59+ COMMIT MESSAGE FORMAT: Always use conventional commits with capital letters.
60+ Follow the format: "type(scope): Description" where the description starts with a capital letter.
61+ Examples: "feat(a2a): Add retry mechanism for agent connections", "fix(auth): Resolve token validation issue"
62+
63+ Follow the development workflow specified in the coding instructions.
64+ mcp_config : |
65+ {
66+ "mcpServers": {
67+ "context7": {
68+ "command": "npx",
69+ "args": ["-y", "@upstash/context7-mcp@latest"],
70+ "env": {}
71+ }
72+ }
73+ }
74+ allowed_tools : |
75+ Bash(task:*)
76+ Bash(gh:*)
77+ Bash(git:*)
0 commit comments