Skip to content

Commit daaea1c

Browse files
Upgrade to Opus 4.7 and scope tools/prompt to current PR only
1 parent 1cf5ad1 commit daaea1c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/claude-code-review.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ jobs:
4545
direct_api: "true"
4646
github_token: ${{ secrets.GITHUB_TOKEN }}
4747
claude_args: |
48-
--model us.anthropic.claude-opus-4-6-v1 --allowedTools "Bash(gh pr diff *),Bash(gh pr view *),Bash(gh api repos/*/pulls/*/comments*),Bash(gh api repos/*/pulls/*/reviews*)"
48+
--model us.anthropic.claude-opus-4-7-v1 --allowedTools "Bash(gh pr diff ${{ github.event.pull_request.number }}),Bash(gh pr view ${{ github.event.pull_request.number }}),Bash(gh api repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/comments*),Bash(gh api repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/reviews*)"
4949
prompt: |
50-
Review this PR for bugs, security issues, and code quality. Post your findings as inline review comments on the relevant lines.
50+
Review PR #${{ github.event.pull_request.number }} in this repository for bugs, security issues, and code quality. Post your findings as inline review comments on the relevant lines of this PR only. Do not modify, comment on, or interact with any other PR.

0 commit comments

Comments
 (0)