Skip to content

Commit 3edad96

Browse files
justin808claude
andauthored
Fix Claude Code Review workflow: use built-in review (#698)
* Remove broken Claude Code Review workflow The plugin-based review setup is broken — the plugin tries to call gh api via the Bash tool, which the action sandbox blocks by default. Removing in favor of the working default claude.yml (@claude mentions). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Fix Claude Code Review workflow: use built-in review instead of broken plugin Replace the plugin-based review (which fails because the sandbox blocks Bash tool access) with the built-in review_triggered_on and use_sticky_comment options. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Fix: remove invalid review_triggered_on input The action auto-detects review mode from the pull_request trigger. Only use_sticky_comment and prompt are needed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c099a3e commit 3edad96

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

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

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,19 @@ name: Claude Code Review
33
on:
44
pull_request:
55
types: [opened, synchronize, ready_for_review, reopened]
6-
# Optional: Only run on specific file changes
7-
# paths:
8-
# - "src/**/*.ts"
9-
# - "src/**/*.tsx"
10-
# - "src/**/*.js"
11-
# - "src/**/*.jsx"
126

137
jobs:
148
claude-review:
15-
# Optional: Filter by PR author
16-
# if: |
17-
# github.event.pull_request.user.login == 'external-contributor' ||
18-
# github.event.pull_request.user.login == 'new-developer' ||
19-
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
20-
219
runs-on: ubuntu-latest
2210
permissions:
2311
contents: read
24-
pull-requests: read
25-
issues: read
12+
pull-requests: write
13+
issues: write
2614
id-token: write
2715

2816
steps:
2917
- name: Checkout repository
30-
uses: actions/checkout@v4
18+
uses: actions/checkout@v6
3119
with:
3220
fetch-depth: 1
3321

@@ -36,9 +24,6 @@ jobs:
3624
uses: anthropics/claude-code-action@v1
3725
with:
3826
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
39-
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
40-
plugins: 'code-review@claude-code-plugins'
41-
prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}'
42-
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
43-
# or https://code.claude.com/docs/en/cli-reference for available options
44-
27+
use_sticky_comment: true
28+
prompt: |
29+
Review this PR for correctness, security issues, and potential improvements.

0 commit comments

Comments
 (0)