Repository navigation
ci: skip draft pull requests and bound job run time - #114
Merged
Merged
Conversation
Draft PRs no longer run CI until marked ready; every job gets a measured timeout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What changed
pull_requesttriggers listtypes: [opened, synchronize, reopened, ready_for_review](GitHub defaults plusready_for_review, so marking a draft ready runs CI). Root jobs getif: github.event.pull_request.draft != true;!= truekeeps push, schedule and dispatch runs, where the field is null.timeout-minutes, set to max(10, 2 x the slowest of up to 20 recent successful runs), rounded up to a multiple of 5.Timeouts
browseralready hadtimeout-minutes: 40and only gains the guard.gousesalways(), so it gets the guard as(always()) && github.event.pull_request.draft != true.publishandpromoteneed other jobs and only run on main pushes, so no guard.codeql.ymlonly gains the draft guard.dependency-release.ymlandrelease-image.ymlalready had timeouts and have nopull_requesttrigger, so they are unchanged. Nothing unmeasured.Verification
actionlinton every changed file: no new findings; output identical to the base branch (pre-existing shellcheck info notes only, where present).timeout-minutes(or job-leveluses:), everypull_requesttrigger listsready_for_review, and every root oralways()job in apull_requestworkflow carries the draft guard.if:guards andtimeout-minuteslines change.🤖 Generated with Claude Code