From fc3b8cd90848e5ac4be5d0fa51d5f1c1c61f3c6d Mon Sep 17 00:00:00 2001 From: David Anthoff Date: Sun, 13 Sep 2026 18:33:12 -0700 Subject: [PATCH] Cancel CI runs when a pull request is closed 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 --- .github/workflows/juliaci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/juliaci.yml b/.github/workflows/juliaci.yml index 6aa24b5..83f766d 100644 --- a/.github/workflows/juliaci.yml +++ b/.github/workflows/juliaci.yml @@ -2,7 +2,7 @@ name: Julia CI on: push: {branches: [main,master]} - pull_request: {types: [opened,synchronize,reopened,ready_for_review,converted_to_draft]} + pull_request: {types: [opened,synchronize,reopened,ready_for_review,converted_to_draft,closed]} issue_comment: {types: [created]} workflow_dispatch: {inputs: {feature: {type: choice, description: What to run, options: [DocDeploy,LintAndTest,TagBot]}}}