Skip to content

ci: review-gate passes when cubic is out of quota and CodeRabbit reviewed - #10

Merged
ricardofrantz merged 1 commit into
mainfrom
ci/review-gate-cubic-quota
Nov 23, 2026
Merged

ricardofrantz merged 1 commit into
mainfrom
ci/review-gate-cubic-quota

Conversation

@ricardofrantz

@ricardofrantz ricardofrantz commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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 ci: review-gate passes when cubic is out of quota and CodeRabbit reviewed bun-do#13 and #12: review-gate passed with "cubic is out of review quota; CodeRabbit reviewed this commit."

View guided diff

Summary by CodeRabbit

  • Chores
    • Updated workflow guidance for cubic quota exhaustion: the check passes with a warning only when CodeRabbit completes successfully; otherwise, it fails. Other cubic outcomes continue through the existing checks.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The review-gate workflow documents cubic quota exhaustion. When the cubic check title contains limit reached, the job passes with a warning only if CodeRabbit’s check is Finished with a success conclusion. Otherwise, the job fails.

Changes: Review gate workflow

Layer / File(s) Summary
Handle cubic quota exhaustion
.github/workflows/review-gate.yml
The workflow documents the quota-exhaustion condition. It passes with a warning when CodeRabbit has finished successfully, and fails otherwise.

Estimated code review effort: 2 (Simple) | ~7 minutes

Change: Bug fix

Merge Risk: Minimal · up to e51c9

The review gate now passes with a warning when cubic is out of quota and CodeRabbit has successfully reviewed the commit. It still fails when neither bot reviewed. No actionable merge risk was found.

Important

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

Failed Failed checks: 3 inconclusive

Check name Status Explanation Resolution
Proof Inconclusive 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 Inconclusive 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 Inconclusive 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 Passed checks: 4 passed

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed Title uses the Conventional Commits form 'ci: ...', with a valid type, no scope, and an imperative subject with no trailing period. It states the main change: the gate passes when cubic is out of quot…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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 valid type, no scope, and an imperative subject with no trailing period. It states the main change: the gate passes when cubic is out of quota and CodeRabbit reviewed. The changed file is the review-gate workflow, which matches the 'ci' type.

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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Central YAML; Path: .coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: c58187b9-3ab3-4ff9-a958-20459a7e8974
Commits

Reviewing files that changed from the base of the PR and between 8e74fbc and e51c950.

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.

@ricardofrantz
ricardofrantz merged commit b44a71e into main Nov 23, 2026
12 checks passed
@ricardofrantz
ricardofrantz deleted the ci/review-gate-cubic-quota branch November 23, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant