Auto-respond to all PR review comments without @claude mention#123
Conversation
Instead of requiring reviewers to explicitly mention @claude, Claude now responds to all issue comments and PR review comments from trusted contributors (OWNER, MEMBER, COLLABORATOR). Added a claude[bot] exclusion to prevent infinite feedback loops. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 4 minutes and 18 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
There was a problem hiding this comment.
Pull request overview
Updates the org-level reusable Claude Code workflow to trigger interactive Claude responses on trusted-contributor PR/issue comments without requiring an explicit @claude mention, while attempting to prevent bot self-reply loops.
Changes:
- Removes the
contains(..., '@claude')gating forissue_commentandpull_request_review_commenttriggers. - Adds an exclusion for comments authored by
claude[bot]to reduce the risk of self-trigger loops. - Updates the job header comment to reflect the new interactive trigger behavior.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| (github.event_name == 'pull_request_review_comment' && | ||
| contains(github.event.comment.body, '@claude') && | ||
| github.event.comment.user.login != 'claude[bot]' && | ||
| contains(fromJson('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association)) |
There was a problem hiding this comment.
With the @claude mention gate removed, this job will now run much more frequently (potentially for every review comment from trusted users). The workflow currently has no concurrency configured for the claude job, so multiple comments in quick succession can start overlapping runs on the same PR, which can lead to conflicting pushes/comments and unnecessary compute/API usage. Consider adding a concurrency group keyed by PR number (or issue/PR number fallback) with cancel-in-progress: true to ensure only one interactive run per PR at a time.
| contains(fromJson('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association)) | |
| contains(fromJson('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association)) | |
| concurrency: | |
| group: ${{ format('claude-{0}', github.event.pull_request.number || github.event.issue.number || github.run_id) }} | |
| cancel-in-progress: true |
…ate-github check (#165) The check incorrectly flagged petry-projects/.github/.github/workflows/ as invalid, but this is the CORRECT pattern per GitHub's reusable workflow syntax: - First .github = repository name - Second .github/workflows = directory path within that repository This check was producing false positives across all repos: - petry-projects/TalkTerm (issues #131, #130, #129) - petry-projects/broodly (issues #159, #158) - petry-projects/google-app-scripts (issues #226, #225) - petry-projects/ContentTwin (issues #111, #110) - petry-projects/markets (issues #137, #136) - petry-projects/bmad-bgreat-suite (issues #123, #122) Disable the check to reduce compliance audit noise and prevent auto-issue creation for valid patterns. Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>



Summary
contains(github.event.comment.body, '@claude')filter from theclaudejob'sifconditionclaude[bot]exclusion to prevent infinite feedback loops where Claude responds to its own commentsMotivation
When Claude creates PRs from issues (via the
claude-issuejob), reviewers currently have to explicitly mention@claudein their review comments for Claude to pick them up. This friction slows down the review cycle. With this change, Claude automatically addresses all review feedback from trusted contributors.Test plan
@claudementionauthor_associationcheck still restricts triggers to OWNER/MEMBER/COLLABORATORpull_requestevent trigger is unchanged🤖 Generated with Claude Code