Skip to content

Commit a028536

Browse files
authored
Claude fix02 (#1252)
1 parent 5e08029 commit a028536

2 files changed

Lines changed: 25 additions & 4 deletions

File tree

.claude/settings.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
{
2-
"allowedTools": ["Bash(gh *)", "Bash(git *)", "Bash(python3 *)", "Bash(grep *)", "Bash(cat *)", "Bash(ls *)"]
2+
"allowedTools": [
3+
"Bash(gh pr view:*)",
4+
"Bash(gh pr diff:*)",
5+
"Bash(gh pr comment:*)",
6+
"Bash(gh api:*)",
7+
"Bash(gh search code:*)",
8+
"Bash(cat:*)",
9+
"Bash(ls:*)",
10+
"Bash(grep:*)",
11+
"Bash(python3:*)",
12+
"Bash(git:*)"
13+
]
314
}

.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)