1+ # SPDX-FileCopyrightText: Copyright (c) 2011-2026 Yegor Bugayenko
2+ # SPDX-License-Identifier: MIT
3+ ---
4+ # yamllint disable rule:line-length
15name : Claude Code
2-
3- on :
6+ ' on ' :
47 issue_comment :
58 types : [created]
69 pull_request_review_comment :
912 types : [opened, assigned]
1013 pull_request_review :
1114 types : [submitted]
12-
1315jobs :
1416 claude :
1517 if : |
@@ -18,33 +20,22 @@ jobs:
1820 (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
1921 (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
2022 runs-on : ubuntu-latest
23+ timeout-minutes : 15
2124 permissions :
2225 contents : read
2326 pull-requests : read
2427 issues : read
2528 id-token : write
26- actions : read # Required for Claude to read CI results on PRs
29+ actions : read
2730 steps :
2831 - name : Checkout repository
2932 uses : actions/checkout@v4
3033 with :
3134 fetch-depth : 1
32-
3335 - name : Run Claude Code
3436 id : claude
3537 uses : anthropics/claude-code-action@v1
3638 with :
3739 claude_code_oauth_token : ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
38-
39- # This is an optional setting that allows Claude to read CI results on PRs
4040 additional_permissions : |
41- actions: read
42-
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.
44- # prompt: 'Update the pull request description to include a summary of changes.'
45-
46- # Optional: Add claude_args to customize behavior and configuration
47- # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
48- # or https://code.claude.com/docs/en/cli-reference for available options
49- # claude_args: '--allowed-tools Bash(gh pr *)'
50-
41+ actions: read
0 commit comments