1+ # SPDX-License-Identifier: FSL-1.1-MIT
2+
13name : Claude Code Review
24
35on :
@@ -13,30 +15,28 @@ jobs:
1315 github.event_name == 'workflow_dispatch' ||
1416 (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude review')) ||
1517 (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude review'))
18+
1619 runs-on : ubuntu-latest
17- timeout-minutes : 5
1820 permissions :
1921 contents : read
20- pull-requests : write
22+ pull-requests : read
2123 issues : read
2224 id-token : write
2325
2426 steps :
2527 - name : Checkout repository
26- uses : actions/checkout@v6
28+ uses : actions/checkout@v5
2729 with :
2830 fetch-depth : 1
2931
3032 - name : Run Claude Code Review
3133 id : claude-review
32- uses : anthropics/claude-code-action@v1
34+ uses : anthropics/claude-code-action@beta
3335 with :
3436 anthropic_api_key : ${{ secrets.ANTHROPIC_API_KEY }}
35- track_progress : true
36- prompt : |
37- REPO: ${{ github.repository }}
38- PR NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }}
3937
38+ model : " claude-sonnet-4-5-20250929"
39+ direct_prompt : |
4040 Please review this pull request and provide feedback on:
4141 - Code quality and best practices
4242 - Potential bugs or issues
4848 Make it short and concise, avoid unnecessary details.
4949 Only focus on things to improve.
5050 Do not need to check the comments of the PR.
51- claude_args : |
52- --model claude-sonnet-4-5-20250929 --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)"
51+
5352 trigger_phrase : " @claude review"
0 commit comments