Skip to content

Add cancel-superseded caller - #208

Merged
d-morrison merged 1 commit into
mainfrom
claude/project-thread-5vaqdp
Nov 5, 2026
Merged

d-morrison merged 1 commit into
mainfrom
claude/project-thread-5vaqdp

Conversation

@d-morrison

Copy link
Copy Markdown
Collaborator

Ezra's standing rule (2026-11-02): "always cancel stale runs". On Ezra's decision (2026-11-03) to roll this out to every Morrison-Lab repo with PR CI, this adds a 17-line caller for Morrison-Lab/gha's cancel-superseded.yml (gha#1400, gha#1401, on v3). On every synchronize and closed of a pull request it cancels that PR's queued and running runs for any head other than the current one, and every earlier run of a closed PR. Runs not tied to a PR (push to main) are not covered. Not exercised before merge: the first live run is this PR's own next push or close.


Generated by Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019xfc9ojH5gMAJaAFRMPitW
@d-morrison d-morrison added the no changelog label Nov 3, 2026 — with Claude
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.2

QR code for preview link

🚀 View preview at
https://Morrison-Lab.github.io/rpt/pr-preview/pr-208/

Built to branch gh-pages at 2026-11-03 16:49 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Copy link
Copy Markdown
Collaborator Author

/review


Posted by Claude Code (AI agent) --- not written by a human.


Generated by Claude Code

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the change that cancels stale PR workflow runs.

No open issues 🎉

What changed in this PR

Adds a GitHub Actions caller to cancel stale PR workflow runs through the shared Morrison-Lab/gha workflow.

Changes:

  • Triggers cancellation on pull request updates (synchronize) and closure.
  • Grants Actions write and pull request read permissions.
  • Calls cancel-superseded.yml@v3; push-only runs remain outside its scope.
File Description
.github/​workflows/​cancel-superseded.yml Adds the event triggers, permissions, and reusable workflow call for stale-run cancellation.

Review effort: Balanced

@d-morrison
d-morrison merged commit e9a7796 into main Nov 5, 2026
20 of 22 checks passed
@d-morrison
d-morrison deleted the claude/project-thread-5vaqdp branch November 5, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants