From d452be0cabc56f054242ee31da02070b0798c1a0 Mon Sep 17 00:00:00 2001 From: Nenad Novakovic Date: Mon, 30 Nov 2026 21:37:01 +0100 Subject: [PATCH] Make the org Claude review post its findings The code-review plugin's command only posts with --comment. Without it, it stops after printing a summary to the hidden job log, so no PR in the org ever got a review. Also pass the command's tools explicitly, as the action's own review example does, and turn on show_full_output for now to see why runs end within seconds. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/org-claude-code-review.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/org-claude-code-review.yml b/.github/workflows/org-claude-code-review.yml index 417663d..89147f8 100644 --- a/.github/workflows/org-claude-code-review.yml +++ b/.github/workflows/org-claude-code-review.yml @@ -63,6 +63,16 @@ jobs: allowed_bots: 'posthog-eu' 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 what makes the plugin post. Without it, the command stops after + # printing its summary to the (hidden) job log, which is why no review was ever + # posted on any PR. + prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }} --comment' + # The tools the code-review command uses, as in the action's own PR review example. + claude_args: | + --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*),Bash(gh issue view:*),Bash(gh issue list:*),Bash(gh search:*)" + # TEMPORARY: print the session in the job log, to see why runs stop after a few + # seconds (likely the plugin's "skip this PR" check). Only private repos get the + # token, so these logs are never public. Remove once reviews post as expected. + show_full_output: true # 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