1+ ---
12name : Claude Code
23
34on :
1011 pull_request_review :
1112 types : [submitted]
1213
14+ permissions : {}
15+
1316jobs :
1417 claude :
1518 if : |
1619 (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
1720 (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
1821 (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
19- (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
22+ (github.event_name == 'issues' &&
23+ (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
2024 runs-on : ubuntu-latest
2125 permissions :
2226 contents : read
2327 pull-requests : read
2428 issues : read
2529 id-token : write
26- actions : read # Required for Claude to read CI results on PRs
30+ actions : read # Required for Claude to read CI results on PRs
2731 steps :
2832 - name : Checkout repository
2933 uses : actions/checkout@v4
@@ -40,11 +44,11 @@ jobs:
4044 additional_permissions : |
4145 actions: read
4246
43- # Optional: Give a custom prompt to Claude. If this is not specified, Claude will perform the instructions specified in the comment that tagged it.
47+ # Optional: Give a custom prompt to Claude. If this is not specified, Claude will
48+ # perform the instructions specified in the comment that tagged it.
4449 # prompt: 'Update the pull request description to include a summary of changes.'
4550
4651 # Optional: Add claude_args to customize behavior and configuration
4752 # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
4853 # or https://code.claude.com/docs/en/cli-reference for available options
4954 # claude_args: '--allowed-tools Bash(gh pr:*)'
50-
0 commit comments