Repository navigation
Description
Description
The scaffolded release template assets/workspace/.github/workflows/release-core.yml applies the draft + approval gate to every release kind, including release candidates. Candidates are supposed to gate on CI only (per #902), so a candidate dispatch fails against a still-draft PR with ERROR: PR #<n> is still in draft.
This is a template drift bug: #902's fix landed in the devkit's own .github/workflows/release.yml (release.yml:354-380, guarding the draft/approval checks behind RELEASE_KIND = final) but was never mirrored into the scaffolded release-core.yml that consumer repos receive. The devkit dogfoods the fixed copy, so the regression went unnoticed until a downstream repo ran a candidate.
Steps to Reproduce
- Deploy the devkit release workflows to a consumer repo (e.g.
vig-os/commit-action). - Open the release PR from
release/X.Y.Z→mainand leave it as a draft (the intended state during candidate iteration). - Dispatch Release Core with
release_kind=candidate. - The
validatejob fails at "Find and verify PR".
Expected Behavior
A release_kind=candidate dispatch passes validation against a draft, not-yet-approved PR, gating on CI only. The draft + approval gate is enforced for release_kind=final only — consistent with RELEASE_CYCLE.md (candidate gate vs. final gate) and the devkit's own release.yml.
Actual Behavior
ERROR: PR #78 is still in draft
##[error]Process completed with exit code 1.
The candidate run is rejected because release-core.yml's "Find and verify PR" step (lines 307-327) checks isDraft and reviewDecision with no release_kind guard.
Environment
- Repo:
vig-os/commit-action(consumer of the scaffolded devkit release workflows) - Workflow:
release-core.yml(Release Core / Validate Release Core) - Release kind:
candidate - Devkit template source:
assets/workspace/.github/workflows/release-core.yml
Additional Context
Documented intent this violates:
RELEASE_CYCLE.md:135— approvals are "the final-release gate, not the candidate gate"RELEASE_CYCLE.md:274— "Candidate dispatch gates on CI only — the PR may stay a draft and need not be approved yet (feat(ci): gate RC dispatch on CI only — move approval + ready-for-review to the final release #902)"RELEASE_CYCLE.md:347— draft/approval prerequisites are "enforced for the final release only"
Possible Solution
Port the guard from release.yml:347-380 into release-core.yml's "Find and verify PR" step: wrap the draft (307-310) and approval (311-327) checks in if [ "$RELEASE_KIND" = "final" ]; then ... else <defer message> fi, keep the existing CI-failure check unconditional, and add RELEASE_KIND: ${{ steps.vars.outputs.release_kind }} to the step env. After merge, redeploy the template to consumer repos (commit-action) and re-run the 0.3.0 candidate.
Changelog Category
Fixed
Activity
fix(ci): gate scaffolded release-core draft/approval on final only
fix(ci): gate scaffolded release-core draft/approval on final only (#…
c-vigo commentedon Jul 15, 2026
Fixed by #1097 (merged to
devas7306f231). The scaffoldedrelease-core.ymldraft + approval gate is now guarded behindrelease_kind=final; candidates gate on CI only. Auto-close did not fire because the PR merged intodev, not the default branch. Ships to consumers on the next devkit release;vig-os/commit-actionneeds a template redeploy before re-running its 0.3.0 candidate.chore: release 1.2.1 (#260)
chore: release 1.2.1 (#1109)
build(devkit): adopt devkit 1.2.1 to fix release automation (#80)
ci(actions): update github-actions (minor and patch) (#1134)
ci(actions): update github-actions (minor and patch) (#98)
ci(deps): bump the actions-minor-patch group across 1 directory with …