Skip to content

ci(release): gate hotfix pull requests into main (CLI-2442) - #6929

Draft
kanadgupta wants to merge 1 commit into
developfrom
kanad-claude/cli-2442-hotfix-pr-gating
Draft

kanadgupta wants to merge 1 commit into
developfrom
kanad-claude/cli-2442-hotfix-pr-gating

Conversation

@kanadgupta

Copy link
Copy Markdown
Member

First of three PRs for the CLI hotfix release process. A hotfix is a hotfix/* PR into main with a fix, perf, or revert title; squash-merging publishes the next stable patch through the unchanged pipeline. This PR adds the gating that such a PR gets automatically.

  • Test also triggers on PRs into main. Every job skips when the PR is the scheduled develop promotion, whose head already passed the merge queue. The run-ci wrapper no longer treats ready PRs into main as stacked, so nothing double-runs.
  • Check Deploy always runs and reports. On the develop promotion it succeeds. On hotfix/* heads it requires the title to start with fix, perf, or revert, with an optional scope and no !, and the failure message says what to change. Any other head fails. The job is named so it can become a required status check on main once this is promoted; the success on the promotion's head SHA is what the release App's direct push will satisfy.
  • Release Smoke Test triggers on hotfix PRs into main and runs the shared release pipeline with dry_run: true, restoring the build-and-smoke rehearsal that beta normally provides. Dispatch inputs keep their defaults. Runs are per-PR concurrent with cancel-in-progress.

Stays in draft until the release App holds its develop ruleset bypass, which the back-merge PR depends on. The runbook and ADR follow in the docs PR.

🤖 Generated with Claude Code

Hotfix PRs into main now get the full Test suite, an always-reporting
deploy-check that enforces a patch-type title on hotfix/* heads, and an
automatic dry-run build-and-smoke rehearsal. The scheduled develop
promotion skips Test and passes deploy-check so its head SHA carries a
success for the release App's direct push.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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