Skip to content

Cancel CI runs when a pull request is closed - #358

Merged
davidanthoff merged 1 commit into
mainfrom
claude/cancel-on-pr-close
Sep 14, 2026
Merged

davidanthoff merged 1 commit into
mainfrom
claude/cancel-on-pr-close

Conversation

@davidanthoff

Copy link
Copy Markdown
Member

One-line opt-in to the new cancel-on-close behavior of the testitem workflow: adding closed to the pull_request trigger 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.

⚠️ Do not merge until julia-testitems/testitem-workflow#30 has been merged and the floating v2 branch fast-forwarded. Against the current v2, a closed event 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

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>
@davidanthoff
davidanthoff marked this pull request as ready for review September 14, 2026 01:53
@davidanthoff
davidanthoff merged commit 5e3dd83 into main Sep 14, 2026
32 of 62 checks passed
@davidanthoff
davidanthoff deleted the claude/cancel-on-pr-close branch September 14, 2026 02:13
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