From 5604e421fe1ad58442f8281bbabaf0d1c2f17a4e Mon Sep 17 00:00:00 2001 From: Douglas Ezra Morrison Date: Fri, 31 Jul 2026 23:08:33 -0700 Subject: [PATCH] Pass --comment so claude-review actually posts its review The code-review plugin gates all posting on a --comment argument: "If --comment argument was NOT provided, stop here. Do not post any GitHub comments." (step 7 of plugins/code-review/commands/code-review.md in anthropics/claude-code.) We have never passed it, so every review this repo has run has been working as designed -- reviewing, printing to the job log, and posting nothing behind a green check. claude has zero review comments across #78, #79, #80, #86, #87, #92, #93 and #94. This was not a permissions problem. #91's pull-requests: write and #92/#94's allowlist work were treating a symptom. Closes #96 Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01HMmB6db4xpbuqcqaQKArZb --- .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 f70f811..ca70d25 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -49,7 +49,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 load-bearing, not decoration. The code-review + # plugin's step 7 reads: "If `--comment` argument was NOT provided, + # stop here. Do not post any GitHub comments." Without it the review + # runs, finds whatever it finds, prints to the job log, and posts + # nothing - with a green check. See issue #96. + prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }} --comment' # This must match the code-review plugin's own `allowed-tools` # frontmatter (plugins/code-review/commands/code-review.md in # anthropics/claude-code) exactly. claude_args replaces the