Cancel CI runs when a pull request is closed - #358
Merged
Merged
Conversation
Adding `closed` to the pull_request trigger types opts into the testitem workflow's cancel-on-close behavior: the closed-event run enters the same concurrency group as the PR's normal runs and cancels whatever is queued or in progress, and the workflow itself skips all CI jobs for the event. Requires testitem-workflow v2 to include julia-testitems/testitem-workflow#30. Co-Authored-By: Claude Fable 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.
One-line opt-in to the new cancel-on-close behavior of the testitem workflow: adding
closedto thepull_requesttrigger types lets the workflow cancel this repository's queued/in-progress CI for a pull request the moment the PR is closed or merged, instead of the run occupying runners until it finishes on its own. See julia-testitems/testitem-workflow#30 for how it works.v2branch fast-forwarded. Against the currentv2, aclosedevent would launch a full test run instead of skipping everything. Kept as a draft until then.🤖 This PR was opened by Claude (Claude Code) on David's request.
🤖 Generated with Claude Code