ci: review-gate passes when cubic is out of quota and CodeRabbit reviewed
Merged
RI
14h ago+10+10+01234567890123456789-0-0-0123456789
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
- 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.
- Live on machine-made/bun-do#13 and #12: review-gate passed with "cubic is out of review quota; CodeRabbit reviewed this commit."
Summary by CodeRabbit
- Chores
- 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.