ci(review): make Claude Code Review post its findings - #313
Jamie-BitFlight wants to merge 1 commit into
Conversation
The workflow ran /code-review:code-review without --comment, and the code-review plugin stops before posting when --comment is absent (anthropics/claude-code plugins/code-review/commands/code-review.md). The inline-comment MCP server is also only installed when its tool is listed in --allowedTools (claude-code-action src/mcp/install-mcp-server.ts). Add --comment, the allowedTools list from the action's docs/solutions.md review example, and pull-requests: write as in that example. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K5rAHJfvZyEEaUQghV7hCQ
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
📊 Test Coverage ReportCoverage: 88.74% 📥 Coverage XML available as artifact: |
Benchmark Results🔴 Regression detected — threshold: 30% scan-clean
scan-violations
fix-violations
cpu
import
Updated 2026-09-30 14:26 UTC |
Summary
Claude Code Review has never posted a review. Two verified causes:
--comment. The prompt runs/code-review:code-review <repo>/pull/<n>.anthropics/claude-codeplugins/code-review/commands/code-review.mdline 63: "If--commentargument was NOT provided, stop here. Do not post any GitHub comments." The plugin README says output goes "to terminal by default, or as PR comment with--commentflag".claude-code-actionsrc/mcp/install-mcp-server.tsinstalls thegithub_inline_commentMCP server only whenclaude_args --allowedToolslists it. This workflow had noclaude_args.Changes (
.github/workflows/claude-code-review.yml)--commentto the prompt.claude_args: --allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)", the list from the action'sdocs/solutions.mdreview example.pull-requests: read→write, as in the same example.Why this is its own PR
The action refuses to run a workflow file that differs from the default branch. The run on #312 logged: "Skipping action due to workflow validation: … The workflow file must exist and have identical content to the version on the repository's default branch." So this change can only be tested after it merges.
Verification
claude_argscontains only the--allowedToolsline, and the prompt ends with--comment.🤖 Generated with Claude Code
https://claude.ai/code/session_01K5rAHJfvZyEEaUQghV7hCQ
Generated by Claude Code