Skip Claude code review for Renovate bot PRs#157
Conversation
Add condition to skip the claude-review job when the PR author is renovate[bot]. This prevents unnecessary review status checks on automated dependency update PRs. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
📝 WalkthroughWalkthroughModified the GitHub Actions workflow configuration to bypass execution for Renovate bot pull requests. Replaced previously commented multi-actor author filters with a conditional guard that checks whether the PR author is the Renovate bot. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
|
Note Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported. |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.github/workflows/claude-code-review.yml (1)
15-16: LGTM — condition is correctly expressed and precisely targets Renovate bot PRs.
github.event.pull_request.user.loginis always populated onpull_requestevents, the string literal'renovate[bot]'matches the canonical GitHub App login for Renovate, and a job-levelifis the right placement (avoids consuming a runner at all).If the repo also uses Dependabot for any ecosystem, you may want to extend the guard:
- if: github.event.pull_request.user.login != 'renovate[bot]' + if: >- + github.event.pull_request.user.login != 'renovate[bot]' && + github.event.pull_request.user.login != 'dependabot[bot]'🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/workflows/claude-code-review.yml around lines 15 - 16, Update the job-level if condition that currently checks github.event.pull_request.user.login != 'renovate[bot]' to also exclude Dependabot PRs; modify the condition referenced (the job-level "if" that inspects github.event.pull_request.user.login) so it checks both 'renovate[bot]' and 'dependabot[bot]' (e.g., require the login to be not equal to both) to skip runners for Dependabot as well.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In @.github/workflows/claude-code-review.yml:
- Around line 15-16: Update the job-level if condition that currently checks
github.event.pull_request.user.login != 'renovate[bot]' to also exclude
Dependabot PRs; modify the condition referenced (the job-level "if" that
inspects github.event.pull_request.user.login) so it checks both 'renovate[bot]'
and 'dependabot[bot]' (e.g., require the login to be not equal to both) to skip
runners for Dependabot as well.
Summary
if: github.event.pull_request.user.login != 'renovate[bot]'condition to skip the claude-review job for Renovate bot PRsUses
github.event.pull_request.user.loginfor precise checking of the PR author.Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit