You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: review-gate passes when cubic is out of quota and CodeRabbit reviewed - #22
cubic's free review quota is used up, so review-gate failed on every pull request even when CodeRabbit had reviewed it. With this change the gate passes with a warning when cubic reports its limit is reached and CodeRabbit finished a review of the same commit. It still fails when neither bot reviewed: cubic out of quota and CodeRabbit rate limited, or CodeRabbit skipped the commit.
Gate step tested against a fake gh with fixed check-run JSON, 10 cases, all as expected: cubic out of quota with CodeRabbit finished on the same commit passes with a warning; cubic out of quota with CodeRabbit rate limited, skipped, no files or path filters fails; cubic error or missing fails; both reviewed passes.
Updated the review gate to pass with a warning when the review quota is exhausted and CodeRabbit has successfully finished its check for the current commit. Otherwise, the gate fails with guidance to request a full review and rerun the job.
No actionable comments were generated in the recent review.
Walkthrough
The review gate now handles cubic review quota exhaustion separately. It passes with a warning only when CodeRabbit’s check is titled Finished and has conclusion success. Other quota-exhausted cases fail with instructions. Non-quota cases continue through the existing checks.
Changes: Review gate quota handling
Layer / File(s)
Summary
Quota exception and gate outcomes .github/workflows/review-gate.yml
When cubic’s check title contains limit reached, the workflow checks CodeRabbit’s title and conclusion. A successful Finished check passes with a warning; other results fail with review instructions. The workflow comment documents this case.
This change lets the review gate pass with a warning when cubic is out of quota and CodeRabbit has successfully reviewed the commit. Other cases still fail. No merge-blocking risk was found.
Important
Pre-merge checks failed
Please resolve all errors before merging. Addressing warnings is optional.
Failed checks: 3 inconclusive
Check name
Status
Explanation
Resolution
Proof
Pull request inputs changed after this check was assessed; its verdict is no longer current.
Re-run the check against the current pull request inputs.
Tests Not Weakened
Pull request inputs changed after this check was assessed; its verdict is no longer current.
Re-run the check against the current pull request inputs.
Public Text
Pull request inputs changed after this check was assessed; its verdict is no longer current.
Re-run the check against the current pull request inputs.
Passed checks: 4 passed
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
Title uses the Conventional Commits form 'ci: ...' with a type and subject, and the subject is imperative-leaning and has no trailing period. It matches the main change: the review gate now passes wit…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
Title uses the Conventional Commits form 'ci: ...' with a type and subject, and the subject is imperative-leaning and has no trailing period. It matches the main change: the review gate now passes with a warning when cubic is out of quota and CodeRabbit reviewed the same commit. The subject uses 'passes' (third person) rather than the imperative 'pass', so it only partly meets the imperative-mood rule.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Simplify code
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Layers: Repository YAML (base), Central YAML (inherited)
Review profile: ASSERTIVE
Plan: Advanced
Run ID: 351155da-4652-4415-b192-bed90d64e459
Commits
Reviewing files that changed from the base of the PR and between 3b5a191 and db77372.
Files selected for processing: 1
.github/workflows/review-gate.yml
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
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
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.
cubic's free review quota is used up, so review-gate failed on every pull request even when CodeRabbit had reviewed it. With this change the gate passes with a warning when cubic reports its limit is reached and CodeRabbit finished a review of the same commit. It still fails when neither bot reviewed: cubic out of quota and CodeRabbit rate limited, or CodeRabbit skipped the commit.
Same file as machine-made/bun-do#13 (merged).
Verification
Summary by CodeRabbit