REPOMATIC-CANCEL-RUNS(1) REPOMATIC-CANCEL-RUNS(1)

repomatic cancel-runs - Cancel in-progress workflow runs for a branch

repomatic cancel-runs [OPTIONS]

Cancel the in-progress and queued workflow runs of a branch.

Fired when a pull request closes: GitHub does not cancel PR-triggered runs on close, so the branch's live runs would burn CI minutes to completion. The repository is resolved by the gh CLI from GH_REPO or the current checkout.

Head branch whose in-progress and queued runs to cancel.
[required]
Run ID to spare (the cancelling run itself). Defaults to $GITHUB_RUN_ID.
Show this message and exit.

Head branch whose in-progress and queued runs to cancel.
Run ID to spare (the cancelling run itself). Defaults to $GITHUB_RUN_ID.
Run ID to spare (the cancelling run itself). Defaults to $GITHUB_RUN_ID.
Show this message and exit.

0
Success.
1
A runtime error, or an aborted prompt (Ctrl-C, a declined confirmation).
2
A usage error: unknown option, invalid value, missing operand, or an unparsable configuration file.

From the cancel-runs workflow, sparing its own run

repomatic cancel\-runs \-\-branch "$BRANCH"

Kevin Deldycke

2026-09-14 7.15.1.dev0