Skip to content

Commit c90a389

Browse files
senna-langclaude
andcommitted
fix: simplify code review prompt to let plugin auto-detect PR context
The previous prompt format passed the PR path as an argument which caused gh CLI to interpret it as a branch name, failing with "no pull requests found". Let the plugin resolve PR info from the GitHub Actions context instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8e24c87 commit c90a389

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
3939
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
4040
plugins: 'code-review@claude-code-plugins'
41-
prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}'
41+
prompt: '/code-review:code-review'
4242
allowed_bots: 'claude'
4343
show_full_output: true
4444
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md

0 commit comments

Comments
 (0)