chore(ci): Improve Claude code review prompt to avoid duplicate feedback#934
chore(ci): Improve Claude code review prompt to avoid duplicate feedback#934
Conversation
Added structured "How to Comment" section that instructs Claude to: - Check existing PR comments before reviewing to avoid duplicates - Only provide new feedback or updates to previous feedback - Use inline comments for specific code issues with suggestions - Organize commenting approach in clear numbered steps This prevents repetitive feedback when the workflow runs on PR updates.
|
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 Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. WalkthroughThe pull request updates the Claude AI review prompt in a GitHub Actions workflow, replacing a brief instruction with a detailed seven-step guide for commenting and inline-comment usage. The prompt now prescriptively instructs Claude on using the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes
Possibly related PRs
Pre-merge checks and finishing touches✅ Passed checks (2 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 |
Deploying repomix with
|
| Latest commit: |
d3faa32
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://7bad3c50.repomix.pages.dev |
| Branch Preview URL: | https://chore-improve-claude-code-re.repomix.pages.dev |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #934 +/- ##
=======================================
Coverage 89.50% 89.50%
=======================================
Files 111 111
Lines 7807 7807
Branches 1498 1498
=======================================
Hits 6988 6988
Misses 819 819 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull Request Overview
This PR enhances the Claude code review workflow by adding structured commenting guidelines and inline comment capabilities. The changes aim to prevent repetitive feedback by instructing Claude to check existing comments before providing new reviews.
Key changes:
- Added a detailed numbered guide for how Claude should approach commenting on PRs
- Introduced inline comment functionality using MCP tools
- Added instructions to check existing comments and avoid repetition
- Added --comments flag to gh pr view command for more reliable comment retrieval - Clarified suggestion format instruction to "actionable fix suggestions with code examples" This makes the instructions clearer and ensures Claude can consistently access all PR comments.
Improved the Claude code review workflow prompt to prevent duplicate feedback when the workflow runs multiple times on PR updates.
Changes
Benefits
Checklist
npm run test(not applicable - workflow file change only)npm run lint(not applicable - workflow file change only)