Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/claude-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,14 @@ jobs:
`confirmed: true`) to flag specific lines.
Only post GitHub comments - do not return review text as a message.

# --allowedTools REPLACES the default tool set rather than adding to it.
# Without Read/Grep/Glob the reviewer cannot open a single file in the
# checked-out branch, which is exactly what the prompt above asks it to
# do. PR #399 burned all 20 turns on denied calls
# (permission_denials_count was 10) and failed without posting anything.
claude_args: |
--max-turns 20
--allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)"
--max-turns 40
--allowedTools "Read,Grep,Glob,mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(git diff:*),Bash(git log:*)"

# Fork PRs: GitHub withholds repository secrets from `pull_request` runs on
# forks and issues a read-only GITHUB_TOKEN, so this workflow cannot review
Expand Down
Loading