Skip to content

ci: exempt release-promotion PRs from pr-checks - #181

Open
Nic-dorman wants to merge 1 commit into
mainfrom
ci/exempt-release-promotion-pr-checks
Open

ci: exempt release-promotion PRs from pr-checks#181
Nic-dorman wants to merge 1 commit into
mainfrom
ci/exempt-release-promotion-pr-checks

Conversation

@Nic-dorman

Copy link
Copy Markdown
Member

Release-promotion PRs (e.g. #180) fail the linear-link and pr-template required checks by design of the promote tooling — they are mechanical version-bump PRs with no Linear issue or template of their own. This exempts them from both checks in check_pr.py: a PR qualifies only when its title starts with chore(release): and its head branch matches rc-*, so an ordinary PR cannot opt out via its title alone. The checks pass (exit 0) rather than skip, because both are required status checks.

These files are duplicated verbatim across the six crate repos; replication to the other five is follow-up scope tracked on the Linear issue.

Linear issue

Risk tier

  • T0 — docs / tooling / CI / pure UX-output. Repo CI only.

Compatibility

  • Wire: none
  • Storage: none
  • API: none

Semver impact

  • fix

Test evidence

python3 .github/scripts/test_check_pr.py — 21/21 cases pass, including 4 new: acceptance for both modes with the promote payload, plus rejections proving both conditions (title prefix, rc-* branch) are required. Spot-checked both modes with #180's exact title/branch/body: exit 0.

New dependency

none

ADR

n/a

Mitigation / rollback

Revert the PR; both checks return to unconditional enforcement.

🤖 Generated with Claude Code

Promote PRs (a chore(release): title from an rc-* head branch) are
mechanical version-bump PRs generated by the release process; they carry
no Linear issue or template, so both required checks now self-pass on
them. Both conditions are required, so an ordinary PR cannot opt out via
its title alone.

V2-1092

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

1 participant