Skip to content

Add cancel-superseded caller - #51

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
Copilot AI balanced review requested due to automatic review settings November 3, 2026 16:36

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 identified for the change adding cancellation of stale pull request CI runs.

No open issues 🎉

What changed in this PR

Adds a caller for the shared Morrison-Lab/gha workflow to cancel stale pull request CI runs.

Changes:

  • Triggers cancellation on pull request updates (synchronize) and closure.
  • Grants Actions write and pull request read permissions.
  • Delegates cancellation to cancel-superseded.yml@v3; non-PR runs remain outside its intended scope.
File Description
.github/​workflows/​cancel-superseded.yml Adds the event triggers, permissions, and shared workflow caller for stale-run cancellation.

Review effort: Balanced

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

Claude finished review — View run


I fetched PR 51 just now. It is open, not a draft, and not merged. Its head is still f854dbb3545c371fac4f66fc515d9291743bf821, the commit I reviewed, so the review stands.

I found nothing to fix, so I left out the @claude follow-up draft.

Verdict

Ready for merge

Structured Review Data (JSON)
{
  "schema_version": "1.1",
  "reviewer": "claude",
  "commit_sha": "f854dbb3545c371fac4f66fc515d9291743bf821",
  "verdict": "CLEAN",
  "findings": [],
  "detailed_assessment": "The new cancel-superseded.yml caller workflow matches the canonical example in Morrison-Lab/gha, with correct triggers, permissions and reusable workflow reference.",
  "holistic_assessment": "A single-file addition with no prose, code or math changes, so regression risk and scope concerns are minimal; the v3 tag could not be checked locally."
}

Reviewed commit: f854dbb

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

💰 Cost: $0.1791 (review) — run

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.2

QR code for preview link

🚀 View preview at
https://Morrison-Lab.github.io/cie/pr-preview/pr-51/

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

@d-morrison
d-morrison merged commit 090c51c into main Nov 5, 2026
17 checks passed
@d-morrison
d-morrison deleted the claude/project-thread-5vaqdp branch November 5, 2026 07:20
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.

2 participants