From 5e8591762a567368bc85ab1457b8c8620d14f09c Mon Sep 17 00:00:00 2001 From: Tom Riglar Date: Fri, 12 Jun 2026 21:04:14 +0100 Subject: [PATCH] ci: pass --comment so the Claude review is actually posted to the PR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The code-review plugin's spec stops before posting anything when --comment is absent: "If --comment argument was NOT provided, stop here. Do not post any GitHub comments." Combined with show_full_output: false, the review on PR #7 ran to completion and was entirely discarded. The pull-requests: write permission from #6 was necessary but not sufficient — this flag is the missing half. Co-Authored-By: Claude Fable 5 --- .github/workflows/claude-code-review.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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