open-code-review/.github
chethanuk b00244926a
ci: cancel superseded CI runs on the same PR or branch (#425)
Every push to a PR started a new CI run while the previous one kept
running to completion on the self-hosted pool. Only the newest commit
matters, so the earlier runs were holding runners for results nobody
would read.

Adds a top-level concurrency group keyed on the PR number, falling back
to the ref for push-to-main. This follows the pattern OpenSandbox uses
across its CI workflows, and is byte-identical to the block already
running in ocr-review.yml, so it reuses the repo's existing idiom
rather than introducing a second one.

Left the other workflows alone deliberately. deploy-pages.yml already
sets cancel-in-progress: false, and release.yml must never cancel:
aborting mid npm-publish would leave the platform packages published
while the meta package's optionalDependencies reference versions that
were never pushed, and npm publish is not reversible.

Verified with actionlint v1.7.12 (clean across all four workflows) and
by exercising both paths live on a fork: a superseded pull_request run
cancelled in 38s, and a superseded push-to-main run cancelled while a
run from a commit without the block, on the same branch, stayed queued.

Closes #422
2026-07-21 19:01:51 +08:00
..
ISSUE_TEMPLATE Add issue and PR templates with bilingual contributing guide (#9) 2026-05-30 14:22:50 +08:00
workflows ci: cancel superseded CI runs on the same PR or branch (#425) 2026-07-21 19:01:51 +08:00
dependabot.yml ci: add govulncheck, job timeout, dependabot and preserve debug symbols in dev builds 2026-06-26 21:02:33 +08:00
pull_request_template.md Add issue and PR templates with bilingual contributing guide (#9) 2026-05-30 14:22:50 +08:00
release.yml feat(release): auto-generate structured release notes from conventional commits 2026-06-22 15:52:06 +08:00