Skip to content

Commit 888f23e

Browse files
ovitrifclaude
andcommitted
fix: add --comment flag and --allowedTools to Claude review workflow
The code-review plugin defaults to terminal output without --comment, so reviews were silently discarded in CI. Additionally, Bash commands (gh CLI, git) are not auto-allowed by the action and need explicit --allowedTools to function. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent bf2df14 commit 888f23e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ jobs:
5050
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
5151
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
5252
plugins: 'code-review@claude-code-plugins'
53-
prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}'
54-
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
55-
# or https://code.claude.com/docs/en/cli-reference for available options
53+
prompt: '/code-review:code-review --comment ${{ github.repository }}/pull/${{ github.event.pull_request.number }}'
54+
claude_args: |
55+
--allowedTools "Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh api:*),Bash(git log:*),Bash(git diff:*),Bash(git blame:*),Read,Glob,Grep"

0 commit comments

Comments
 (0)