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