Skip to content

Commit 0709a62

Browse files
natemcmasterclaude
andcommitted
chore: enhance Claude Code review workflow
Add Read/Glob/Grep to allowed tools, track_progress, sticky comments, display report, actions:read permission, plugin marketplace, and first-time contributor context. Remove redundant posting instructions (already in code-review.md). [ci skip] Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ed43edc commit 0709a62

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

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

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
contents: read
1212
pull-requests: write
1313
id-token: write
14+
actions: read
1415

1516
steps:
1617
- name: Checkout repository
@@ -23,17 +24,27 @@ jobs:
2324
uses: anthropics/claude-code-action@v1
2425
with:
2526
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
27+
track_progress: true
28+
use_sticky_comment: true
29+
display_report: true
30+
additional_permissions: |
31+
actions: read
32+
plugin_marketplaces: "https://github.com/anthropics/claude-plugins-official.git"
2633
plugins: "code-review@claude-plugins-official"
2734
prompt: |
2835
REPO: ${{ github.repository }}
2936
PR NUMBER: ${{ github.event.pull_request.number }}
3037
38+
CONTRIBUTOR: ${{ github.event.pull_request.user.login }}
39+
CONTRIBUTOR_ASSOCIATION: ${{ github.event.pull_request.author_association }}
40+
3141
Read .claude/commands/code-review.md and follow its instructions to review PR ${{ github.event.pull_request.number }}.
3242
3343
Note: The PR branch is already checked out in the current working directory.
3444
35-
Use `gh pr comment` for top-level feedback.
36-
Use `mcp__github_inline_comment__create_inline_comment` (with `confirmed: true`) to highlight specific code issues.
37-
Only post GitHub comments - don't submit review text as messages.
45+
If CONTRIBUTOR_ASSOCIATION is FIRST_TIME_CONTRIBUTOR or NONE, this is a new contributor.
46+
Be extra welcoming, but also be thorough — check for compliance with project coding standards,
47+
proper test coverage, and any breaking changes. Help them understand project conventions
48+
rather than just pointing out issues.
3849
39-
claude_args: '--model opus --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)"'
50+
claude_args: '--model opus --allowedTools "Read,Glob,Grep,mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)"'

0 commit comments

Comments
 (0)