Skip to content

Commit e3aa2e1

Browse files
authored
Enhance CLAUDE code review workflow
Updated the CLAUDE review workflow to include additional allowed tools and refined output requirements for PR comments.
1 parent fdc02cc commit e3aa2e1

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

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

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ jobs:
3131
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
3232
plugins: 'code-review@claude-code-plugins'
3333

34-
# IMPORTANT: allow exactly what the review flow uses
3534
claude_args: >
3635
--allowedTools
3736
"Bash(gh pr view:*)"
3837
"Bash(gh pr diff:*)"
38+
"Bash(gh pr comment:*)"
3939
"Bash(gh api:*)"
4040
"Bash(gh search code:*)"
4141
"Bash(cat:*)"
@@ -46,8 +46,18 @@ jobs:
4646
4747
prompt: |
4848
/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}
49-
Post the results as one top-level PR comment titled "Claude Code Review".
50-
If you cannot access the diff/files, say so explicitly and explain what is blocking access.
49+
50+
Post the results as ONE top-level PR comment titled "Claude Code Review".
51+
52+
Output requirements (even if no issues):
53+
- Start with: files changed count + list up to 15 changed file paths
54+
- Then: a short summary of what the PR changes (3–6 bullets)
55+
- Then: findings:
56+
- If issues: list them with file path + line numbers when possible
57+
- If no issues: list at least 3 concrete "improvement opportunities" with file paths
58+
59+
If you cannot access the diff/files, say exactly what is blocked.
60+
If posting a PR comment is blocked, write the full review to the GitHub Actions job summary instead.
5161
5262
additional_permissions: |
5363
actions: read

0 commit comments

Comments
 (0)