Repository navigation
ci: stop CI on draft pull requests [skip ci] - #29484
Merged
Merged
Conversation
9 tasks done
10 tasks done
8 of 9 tasks
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.
ELI5
Draft pull requests should not spend CI time before they are ready for review.
What Changed
Skip CI jobs on draft PRs across all 27 PR CI workflows. Marking a PR ready starts its checks; converting it back to draft cancels existing runs through the existing concurrency groups. The PR description's test-line counter still runs.
The main workflow skips both its change detector and final status job for drafts. Its required-check validator allows that exception while preserving failure reporting for ready PRs.
Why
Draft PR #29479 still started tests and packaging. Job conditions stop runner allocation while keeping checks available when review begins; commit-message skipping would require every author to remember it.
Linked Issue
Example: #29479.
Visual Proof
N/A — GitHub Actions configuration only.
Testing
342 focused tests passed across eight suites, including draft admission, readiness, non-PR entry points, aggregate failures, and concurrency. Changed JavaScript lint, workflow formatting, and whitespace checks passed. Reproduced the previous main-workflow conditions admitting draft jobs. Tested on Linux; runner selection and platform commands are unchanged.
CI is explicitly skipped for this fast merge at the maintainer's request (
[skip ci]).Review
Self-reviewed the workflow guards and retained aggregate failure handling.
Agent skill upstream boundary
Notes
Only GitHub Actions scheduling changes; no desktop, mobile, folder-workspace, or SSH runtime changes.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)Full application validation is omitted for this workflow-only change; focused validation is listed above.