Repository navigation
chore(coderabbit): pause automatic reviews after two reviewed commits - #353
Merged
Merged
Conversation
auto_pause_after_reviewed_commits was 0, which turns the pause off, so every push to a pull request was reviewed again. It is now 2.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
.coderabbit.yamlsetsreviews.auto_review.auto_pause_after_reviewed_commitsto0. In CodeRabbit's configuration reference that value turns the pause off, so every push to a pull request is reviewed again. This changes it to2: automatic review stops after two reviewed commits, which caps re-reviews of a pull request that keeps getting fixup pushes. CodeRabbit's default is5.Why 2: across a week of pull requests in several repositories, about 70% of CodeRabbit's reviews were re-reviews of a later push, and a cap of two would have cut the review count by roughly 44%. That is an estimate from review counts. The counts do not time each finding to the review that raised it, so I cannot say how many findings the cap would have removed. 30 of the 36 major findings were on pull requests that got more than two reviews, so the cap can lose some late findings in exchange for fewer reviews and fewer rate-limit stalls.
Checks I ran:
https://coderabbit.ai/integrations/schema.v2.json): integer, default 5, minimum 0, "Set to 0 to disable"..coderabbit.yamlvalidates against that schema with 0 errors after the change; a string value in the same place gives 1 error, so the check does reject bad values.npx --yes oxfmt@0.70.0 --check .exit 0;npx --yes oxlint@1.85.0 .exit 0;node --test test/*.test.mjsexit 0.Not known: the docs do not say how a paused review shows in the pull request status or how to resume it. I will look at the first pull request that pauses and record what it shows.
Not changed: no other
.coderabbit.yamlkey, and CodeRabbit stays on. NoCHANGELOG.mdentry, because this configures the repository's own review bot and nothing in the npm package changes.check:packageandbun testnot run, no packaged or tested file changed).CHANGELOG.mdentry underUnreleased(none needed, see above).Summary by cubic
Pauses CodeRabbit's automatic review after two reviewed commits per pull request, so fixup pushes after that no longer trigger a new review. The previous value of
0disabled the pause, which meant every push was reviewed again; CodeRabbit's default is5.Trade-offs
Written for commit 8fd550a. Summary will update on new commits.