1515jobs :
1616 claude :
1717 if : |
18- (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
19- (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
20- (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
21- (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude') || (github.event.action == 'labeled' && github.event.label.name == 'claude'))) ||
22- (github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'claude')
18+ (
19+ (github.event_name == 'issue_comment' &&
20+ contains(github.event.comment.body, '@claude') &&
21+ contains(fromJson('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)) ||
22+ (github.event_name == 'pull_request_review_comment' &&
23+ contains(github.event.comment.body, '@claude') &&
24+ contains(fromJson('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)) ||
25+ (github.event_name == 'pull_request_review' &&
26+ contains(github.event.review.body, '@claude') &&
27+ contains(fromJson('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.review.author_association)) ||
28+ (github.event_name == 'issues' &&
29+ github.event.action == 'labeled' &&
30+ github.event.label.name == 'claude') ||
31+ (github.event_name == 'pull_request' &&
32+ github.event.action == 'labeled' &&
33+ github.event.label.name == 'claude')
34+ )
2335
2436 runs-on : ubuntu-latest
2537 permissions :
@@ -44,12 +56,25 @@ jobs:
4456 additional_permissions : |
4557 actions: read
4658
47- claude_args : ' --allowed-tools Code Editor(*) Git(*) Bash(gh pr:*)'
59+ prompt : |
60+ WHEN WORKING ON ISSUES:
61+ - Implement the requested changes
62+ - Commit changes to a new branch
63+ - Create a pull request using the GitHub CLI
64+ - Include a summary and "Closes #<issue-number>" in the PR body
4865
49- # Optional: Give a custom prompt to Claude. If this is not specified, Claude will perform the instructions specified in the comment that tagged it.
50- # prompt: 'Update the pull request description to include a summary of changes.'
66+ WHEN WORKING ON PR FEEDBACK:
67+ - Apply requested changes
68+ - Commit directly to the existing PR
69+ - Do NOT create a new PR
5170
52- # Optional: Add claude_args to customize behavior and configuration
53- # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
54- # or https://code.claude.com/docs/en/cli-reference for available options
71+ ALWAYS:
72+ - Use clean, professional commit messages
73+
74+ track_progress : true
75+
76+ claude_args : |
77+ --model "claude-opus-4-5"
78+ --max-turns 100
79+ --allowed-tools "Edit,Write,Read,Glob,Grep,LS,Git(*),Bash(git:*),Bash(gh pr:*),Bash(gh repo:*),Bash(gh issue:*)"
5580
0 commit comments