diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index ae19d60..55661e9 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -41,7 +41,12 @@ jobs: claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} plugin_marketplaces: 'https://github.com/anthropics/claude-code.git' plugins: 'code-review@claude-code-plugins' - prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}' + # --comment is required for the review to be posted to the PR: the + # code-review plugin's spec says "If --comment was NOT provided, + # stop here. Do not post any GitHub comments." Without it the review + # runs and is discarded (the log doesn't even show it unless + # show_full_output is enabled). + prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }} --comment' # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md # or https://code.claude.com/docs/en/cli-reference for available options