Skip to content

[BUG] Candidate release fails draft/approval gate — release-core.yml template missing #902 guard #1095

Closed

Description

@c-vigo

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

  1. Deploy the devkit release workflows to a consumer repo (e.g. vig-os/commit-action).
  2. Open the release PR from release/X.Y.Z → main and leave it as a draft (the intended state during candidate iteration).
  3. Dispatch Release Core with release_kind=candidate.
  4. The validate job fails at "Find and verify PR".

Observed: https://github.com/vig-os/commit-action/actions/runs/29396249943/job/87290340861

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:

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

  1. added
    bug
    area:ci
    semver:patch
    on Jul 15, 2026
  2. c-vigo commented on Jul 15, 2026

    @c-vigo
    ContributorAuthor

    Fixed by #1097 (merged to dev as 7306f231). The scaffolded release-core.yml draft + approval gate is now guarded behind release_kind=final; candidates gate on CI only. Auto-close did not fire because the PR merged into dev, not the default branch. Ships to consumers on the next devkit release; vig-os/commit-action needs a template redeploy before re-running its 0.3.0 candidate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cibugsemver:patch

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions