Skip to content

ci(auto-release-pr): create Promote+Release PRs as draft - #173

Merged
TaprootFreak merged 1 commit into
stagingfrom
ci/auto-release-prs-as-draft
Jun 1, 2026
Merged

ci(auto-release-pr): create Promote+Release PRs as draft#173
TaprootFreak merged 1 commit into
stagingfrom
ci/auto-release-prs-as-draft

Conversation

@TaprootFreak

Copy link
Copy Markdown
Contributor

Summary

Mirror of zk-coins/app#151. Both auto-release-pr workflows now create their PRs as DRAFT so the operator's gh pr ready toggle fires the ready_for_review event that triggers ci.yaml. PRs opened via the workflow's GITHUB_TOKEN would otherwise hit GitHub's anti-recursion policy and silently skip ci.yaml — leaving every staging-bound and develop-bound auto-PR without a pre-merge CI gate (visible today on #166 and #169).

Change

Two-line addition (--draft) in:

  • .github/workflows/auto-release-pr-staging.yaml (staging → develop Promote PR)
  • .github/workflows/auto-release-pr.yaml (develop → main Release PR — keeps --label ci:full for the heavy M3 Ultra suite)

Operator UX

Identical to before plus one click:

  1. Push to staging / develop → Auto-PR opens as draft
  2. gh pr ready <num> (or UI "Ready for review" button) → CI starts (incl. heavy suite via the existing ci:full label on the Release PR)
  3. CI green → merge

Test plan

  • CI green on this PR (proves staging-bound PRs trigger ci.yaml after the existing ci: add staging auto-promote-pr workflow + doc the new staging flow #148-style branches-filter drop already landed)
  • After merge: next staging push opens its Promote PR as draft → toggle ready → CI runs
  • Same for next develop push opening the Release PR + the ci:full heavy suite

Mirror of zk-coins/app#151 — the GITHUB_TOKEN that opens these PRs
hits GitHub's anti-recursion policy and silently skips ci.yaml,
leaving every staging-bound and develop-bound auto-PR without a
pre-merge CI gate. Creating as DRAFT lets the operator's explicit
`gh pr ready` toggle fire the `ready_for_review` event that IS
allowed to trigger downstream workflows, so the full Lint & Build
plus (with `ci:full` already applied at creation) Node + Shared
Tests + Coverage Gate run against the actual PR HEAD before merge.

Both workflows in this repo carry the same one-line addition:
  - auto-release-pr-staging.yaml  (staging → develop)
  - auto-release-pr.yaml          (develop → main, keeps ci:full label)

Operator UX: one extra click. `gh pr ready <num>` (or the UI button)
promotes the PR + runs CI in a single step.
@TaprootFreak
TaprootFreak marked this pull request as ready for review June 1, 2026 23:51
@TaprootFreak
TaprootFreak merged commit 6b39bee into staging Jun 1, 2026
5 of 6 checks passed
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