Repository navigation
feat(code-reviews): limit code reviews concurrency for individuals - #2886
Merged
Merged
Conversation
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (3 files)
Reviewed by gpt-5.5-20260423 · 608,570 tokens |
Contributor
Author
|
Manual test passed. Tested:
Verified:
|
eshurakov
approved these changes
Apr 29, 2026
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.
Why
Personal code reviews could run too many at once, even when an account had little or no credit. That could use too much capacity and make queues harder to control.
What changed
Organizations can still run up to 20 cloud code reviews at the same time. Personal accounts now get a smaller limit based on credit balance: 3 at once when they have more than $5, and 1 at once when they have $5 or less. The queue uses the new limit before starting more reviews, while old stuck review handling stays the same. Local debug request logs are also ignored so they do not get added by mistake.
How to test
pnpm --filter web typecheck.pnpm test:dbif there is no local Postgres.pnpm test -- dispatch-pending-reviews.