Correct how the automatic Claude Code review is triggered - #8177
Conversation
CONTRIBUTING said the ai-review label is required and that "without the label, the review doesn't fire." The gate in bitwarden/gh-actions/check-review-gate reviews any non-draft PR automatically, once per PR; the label covers what that safety net skips — drafts and repeat reviews.
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE This PR replaces one sentence in Code Review DetailsNo findings. Documentation-only change with no security, correctness, or compatibility impact. Note: the "once per PR" and draft-gating behavior is implemented in the reusable |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8177 +/- ##
=======================================
Coverage 63.35% 63.35%
=======================================
Files 2337 2337
Lines 101412 101412
Branches 9159 9159
=======================================
Hits 64248 64248
Misses 34951 34951
Partials 2213 2213 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
|
||
| - Run a local Bitwarden Claude Code review with `/bitwarden-code-review:code-review-local` — it writes findings to files so you can fix them before pushing, without posting anything to GitHub. | ||
| - When you raise the PR, apply the `ai-review` label. Our reusable GitHub workflow watches for it and runs a Claude Code review automatically; without the label, the review doesn't fire. | ||
| - A non-draft PR gets a Claude Code review automatically once per PR, no label needed. Apply `ai-review` to review a draft or re-review after one has posted. |
There was a problem hiding this comment.
🎨 This is true for all repos. What do you think about adjusting creating-pull-request to account for this so it doesn't need to be added in multiple repos? Chances are creating-pull-request is why it's asking for a label in the first place, unless there's something else in this repo or your local environment driving the prompt that I'm not seeing.
🎟️ Tracking
No ticket — drive-by fix spotted while resolving review feedback on the PAM stack (#8160–#8162)
📔 Objective
Fixes the instructions for how ai reviews behave. Stops claude from asking if you want the label applied.