chore(ci): Add MCP inline comment tool to Claude Code Review workflow#884
chore(ci): Add MCP inline comment tool to Claude Code Review workflow#884
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds the MCP inline comment tool to the Claude Code Review workflow to enable creating inline comments on specific lines of code in pull requests.
- Added
mcp__github_inline_comment__create_inline_commentto the allowed tools list in the CI workflow
|
Note Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported. |
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe GitHub Actions workflow .github/workflows/claude-code-review.yml was updated to add mcp__github_inline_comment__create_inline_comment to the claude_args allowed tools list, preceding the existing Bash-based GH tools. No other files or public APIs were changed. Changes
Sequence Diagram(s)sequenceDiagram
participant Dev as Developer
participant GH as GitHub Actions (claude-code-review)
participant Claude as Claude Reviewer
participant Tools as Allowed Tools
participant PR as Pull Request
Dev->>GH: Open/Update PR
GH->>Claude: Invoke review with claude_args (allowed-tools list)
Claude->>Tools: Select tools as needed
alt Uses inline comment tool
Claude->>PR: mcp__github_inline_comment__create_inline_comment (post inline comments)
else Uses existing Bash-based GH tools
Claude->>Tools: Invoke existing GH Bash tools
Tools->>PR: Report results/status
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #884 +/- ##
=======================================
Coverage 88.82% 88.82%
=======================================
Files 109 109
Lines 7612 7612
Branches 1438 1438
=======================================
Hits 6761 6761
Misses 851 851 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
.github/workflows/claude-code-review.yml (1)
56-56: Align the reviewer prompt with the new inline-comment toolWe now allow
mcp__github_inline_comment__create_inline_comment, but the prompt still instructs reviewers to “Usegh pr commentwith your Bash tool.” That guidance conflicts with the newly enabled workflow and may cause confusion. Please update the prompt (or add a note) so reviewers know they can and should use the inline comment tool when appropriate.
a10cd42 to
10bb41a
Compare
Deploying repomix with
|
| Latest commit: |
da781bf
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://b4cf1514.repomix.pages.dev |
| Branch Preview URL: | https://chore-claude-code-review.repomix.pages.dev |
Add formatting instructions to the Claude Code Review workflow to improve readability of PR comments. The review will now show a brief summary upfront with detailed feedback collapsed in a <details> section.
10bb41a to
da781bf
Compare
Add
mcp__github_inline_comment__create_inline_commentto the allowed tools in the Claude Code Review workflow. This enables the review agent to create inline comments on specific lines of code in pull requests.Checklist
npm run testnpm run lint