Skip to content

ci: cancel reviews when a PR becomes draft - #546

Merged
Eli Pinkerton (wallstop) merged 1 commit into
mainfrom
ci/cancel-draft-review
Nov 17, 2026
Merged

Eli Pinkerton (wallstop) merged 1 commit into
mainfrom
ci/cancel-draft-review

Conversation

@wallstop

@wallstop Eli Pinkerton (wallstop) commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

DISCLOSURE: LLM-GENERATED TEXT

Why:
An active review can continue after a pull request becomes draft.

What:

  • Trigger the review workflow on draft conversion.
  • Cancel the active run through existing concurrency.
  • Skip the replacement review while the PR is draft.

No issue applies; this completes the owner-requested integration.

Type of Change

  • Refactor

Checklist

  • Workflow syntax and live cancellation verified.
  • No runtime or public API changes.
  • Documentation and changelog updates do not apply.

Handle converted_to_draft in the existing concurrency group. The draft guard skips the replacement review and cancels the active run.
@coderabbitai

coderabbitai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 42 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 139 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DISCLOSURE: LLM-GENERATED TEXT

OpenAI review: 0 findings.

No defects found in the changed workflow trigger.

5786 in, 777 out tokens. Comments only; this review never blocks a merge.

@wallstop
Eli Pinkerton (wallstop) merged commit e6c5216 into main Nov 17, 2026
2 checks passed
@wallstop
Eli Pinkerton (wallstop) deleted the ci/cancel-draft-review branch November 17, 2026 23:48
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