Skip to content

Release-GHRepository requires a release label or a configured bump - #109

Open
Marius Storhaug (MariusStorhaug) wants to merge 55 commits into
mainfrom
namespaced-release-labels
Open

Marius Storhaug (MariusStorhaug) wants to merge 55 commits into
mainfrom
namespaced-release-labels

Conversation

@MariusStorhaug

@MariusStorhaug Marius Storhaug (MariusStorhaug) commented Aug 28, 2026 •

Copy link
Copy Markdown
Member

Replace legacy labels with namespaced release: labels. Update the action pin and the label rules in the same upgrade. If you use automatic patch bumps or moving aliases, configure them explicitly.

Run Calculate and CI on pull_request updates. Publish the exact default-branch commit after CI. Choose one action invocation or pass the release plan from an earlier Calculate step in the same run.

Breaking: Release decisions need a bump or skip

The action reads only the five labels in the table below. One bump label overrides DefaultBump. With no bump or skip label, the action uses the configured default. Without a configured bump, the effective value is none and the decision fails. Multiple bump labels fail the run. release:skip with another supported release label also fails.

Migration guide
  1. Identify the revision your workflow uses. You can upgrade directly from v2.0.3. If you use an older revision, read the applicable release notes through the target release. Install an intermediate release only if its notes require it.
  2. Create any necessary labels from the table. Update the rules and active pull requests that use legacy release labels. If the old rules supplied more than one bump, keep only the intended bump. Leave historical pull requests and unrelated labels unchanged.
  3. Set DefaultBump: patch in the workflow or settings file to keep automatic patch bumps. For a different default, use minor or major. Otherwise, use one bump label or release:skip on each pull request. To clear a file default for one caller, set the input to none.
  4. Use PSModule/Release-GHRepository@<published-release-sha> in uses:. Replace PSModule/Auto-Release if your workflow uses that name. Do not use this pull request's head as a production pin. If you use a template, first verify an immutable template revision with the selected action revision.
  5. Apply the label rules, action pin, and applicable workflow or settings changes in one upgrade. Keep the v2 publisher from processing pull requests with the new labels during the switch. Before you enable publication, run Mode: calculate on a test pull request. Check that the bump label overrides the default, a valid skip returns no version, and conflicting labels fail. With DefaultBump: none, check that an unlabeled pull request fails.
Legacy instruction Replacement
patch or fix release:patch
minor or feature release:minor
major or breaking release:major
A custom bump label The matching namespaced bump label
prerelease release:prerelease with one bump label or a configured default on an open pull request
NoRelease or a custom ignore label release:skip without another supported release label
Technical details

Release coverage for all consumer sections. The product is the Git-distributed action. The publishing target is the GitHub stable release and tag channel. The last confirmed stable publication is v2.0.3, receipt 351975133, published 2026-07-10T08:29:31Z. Its notes name #106. The tag and downloaded source archive identify that pull request's squash commit, PSModule/Release-GHRepository@750abed0ecab02394554b610dc3aa191e75e3248. The release is not immutable. The original publisher log is unavailable.

Candidate and comparisons. The candidate is PSModule/Release-GHRepository@3f22cf227aee5709f430eeb79885a2121807a629. The stable source comparison includes the unpublished pull_request example from #114. The separate PR-base comparison starts at 0fbca9f0c422d1d8f79e97b3b9fe1d50e106feab.

Template compatibility. The Template-Action publisher at PSModule/Template-Action@634ca503a47a39ca26d72fa59c784da8118ae835 still pins PSModule/Auto-Release v2.0.2. No compatible template revision has been verified against this candidate.

Breaking: Stable releases use pushes to the default branch

A pull request close no longer publishes a stable release. The publisher uses the exact pushed commit and the decision of the pull request that merged at that commit. A direct push without a matching merged pull request does not publish, even with a configured bump. A closed pull request can still clean up prereleases.

Migration guide
  1. Add a push trigger for your default branch, for example main. Add your CI job to needs. Limit the publisher to github.event_name == 'push' && github.ref_name == github.event.repository.default_branch.
  2. Check out ${{ github.sha }}. Give the stable job contents: write and pull-requests: read. Run the published action in Publish mode. It calculates and publishes in one step unless you supply the plan described below.
  3. Put all stable publishers in the same repository-wide concurrency group. On GitHub.com, set queue: max on the publish job. Keep Calculate and CI outside the queue.
  4. Keep pull_request for prereleases and cleanup, as shown in the updated workflow example. Use trusted code from the base repository. Run the write-enabled job only for same-repository pull requests. Handle opened, reopened, synchronize, labeled, and unlabeled for open pull requests. Publish an open pull request only with release:prerelease and a valid bump. Handle closed for cleanup. Use contents: write and pull-requests: write for that job.
  5. Keep fork pull requests read-only. For a fork prerelease, an authorized maintainer must approve the exact changes. Merge only the approved changes into a separate branch in the base repository. Open a same-repository pull request from that branch. Apply release:prerelease with a bump label or configured default. Review the revision again if it changes.
  6. Before you switch publishers, run Publish with WhatIf: true on a push that has an exact matching merged pull request. Check that the planned tag points to the pushed SHA. Keep UsePRTitleAsNotesHeading and UsePRBodyAsReleaseNotes set to true to use the full pull request title and description. Check that a direct push does not publish and a pull request close only plans cleanup.
Related links

Breaking: Named inputs override repository settings

The action resolves the defaults, the selected settings file, and then nonempty named inputs. An explicit false or a value equal to a default overrides the file. An omitted, null, or empty named input retains the file value. Invalid values fail even if another layer overrides them.

Migration guide
  1. If with: sets ConfigurationFile to a custom path, rename it to SettingsFilePath. Keep the same path. If it selects .github\auto-release.yml, omit the input. That file remains the default.
  2. Remove AutoPatching, IgnoreLabels, MajorLabels, and PatchLabels from the workflow and settings file. If releases were opt-in, use release:skip on pull requests that must not publish. Follow the new label rules for the other pull requests.
  3. Remove any named input that must not override its file value. For example, remove WhatIf: false if the file sets WhatIf: true. Correct unknown keys, null file values, and invalid settings. To remove a version prefix or date suffix, set VersionPrefix: '' or DatePrereleaseFormat: '' in the file.
  4. For a relative SettingsFilePath, use a path from the explicit WorkingDirectory input or, if omitted, from github.workspace. A file-defined WorkingDirectory changes where the action runs. It does not select a different file. Relative execution directories start at github.workspace.
  5. To share startup settings, set Debug, Verbose, WorkingDirectory, Version, or Prerelease in the file. Version and Prerelease select the GitHub PowerShell module. Use release:prerelease to select repository prerelease mode.
  6. Run Calculate with the settings you plan to use. Check that the expected file and inputs take effect before GitHub-Script starts. For example, DefaultBump: major in the file gives a major decision unless an input or label overrides it.
Technical details

The settings, startup, and cleanup implementation for #111 is complete in this candidate. The issue review covered push publication, workflow standards, settings, and cleanup. The candidate does not close the broader push publication or required-check issues.

Related links

Breaking: Prerelease records no longer move or delete exact tags

A prerelease uses the exact pull request head. For pull request 42 from feature/demo, the tag can be v2.1.0-featuredemo-pr42.1. The counter advances within the version core and pull request series. A configured date suffix follows the counter.

AutoCleanup removes only the release records for the matching pull request series and prefix. It keeps their exact tags. IncrementalPrerelease: false keeps one visible release record. It does not reuse an old tag.

Migration guide
  1. If a script reads prerelease tags, update it to read the pull request series and counter. The series includes the alphanumeric part of the branch name and the pull request number. If the branch name has no alphanumeric characters, the series is pr-<number>.
  2. Remove active prerelease records with the old series format before you switch. Keep their exact tags. The new action does not clean up records under the old format or an earlier VersionPrefix.
  3. If you set IncrementalPrerelease: false, use the current release record to find the newest prerelease. Do not rely on a fixed tag for the branch.

Breaking: Moving major and minor aliases require opt-in

A stable release still gets an exact version tag. The action does not create or move major or minor aliases by default. After it verifies a stable release, each enabled alias points to the greatest completed version in its family.

Migration guide
  1. If callers need vMAJOR or vMAJOR.MINOR, set CreateMajorTag: true or CreateMinorTag: true, respectively. Keep the same settings in Calculate and Publish.
  2. Prefer a full published commit SHA for action pins. Protect exact version tags against modification and deletion. Keep moving aliases outside those tag protections.

New: Calculate a version in CI without publishing

Mode: calculate checks the decision without changing GitHub. On an open pull request, it can calculate a prerelease version without release:prerelease. It uses a configured bump when there is no bump or skip label. Without either a decision or a default, the step fails and tells you how to select a bump or skip. A valid skip returns no version.

Use the action once to calculate and publish after CI. To use the version earlier in the workflow, calculate it first and pass ReleasePlan unchanged to Publish. Publish rejects a changed plan before it writes a different release.

Migration guide
  1. Give the Calculate job contents: read and pull-requests: read. Add a step with id: calculate and Mode: calculate. For pull request checks, use pull_request with opened, reopened, synchronize, labeled, unlabeled, and edited.
  2. Read steps.calculate.outputs.Decision, BumpSource, and ReleaseVersion. Expect release and an unprefixed version for a valid bump. Expect skip and an empty version and plan for a valid skip. For a push to a branch with an open pull request, set PullRequest: OWNER/REPO#NUMBER if more than one matches or the push is in a fork.
  3. For staged stable publication, run Calculate in a read-only Plan job on pushes to the default branch. Use the same action revision and release settings in Plan and Publish. Expose Decision, ReleaseVersion, and ReleasePlan as outputs. Use ReleaseVersion for build steps that need the version. Do not carry the pull request preview into the push run.
  4. Set needs: [Plan, CI] on the stable publisher. In addition to the push condition, require needs.Plan.outputs.Decision == 'release'. Check that ${{ needs.Plan.outputs.ReleasePlan }} is nonempty before you call Publish. If it is empty, fail the job. Set the Publish input ReleasePlan to that unchanged output. Do not pass the release version to the dependency input Version.
  5. Use WhatIf: true to verify the handoff within the same push run. Check the planned target and tag. Omit ReleasePlan if you choose to calculate and publish in one step instead. If the plan changes before publication, run Calculate and CI again.

For the staged path, save this example as .github/workflows/Repository-Release.yml. Replace both <released-commit-sha> placeholders with the full commit SHA of the same published action release. Set the trigger branch to your default branch. Add workflow_call under on: in your existing Test-Actions.yml, or replace the CI job with your own tests. The CI job must test ${{ github.sha }}.

name: Repository release

on:
  pull_request:
    branches: [main]
    types: [opened, reopened, synchronize, labeled, unlabeled, edited]
  push:
    branches: [main]

permissions: {}

jobs:
  Plan:
    runs-on: ubuntu-24.04
    permissions:
      contents: read
      pull-requests: read
    outputs:
      Decision: ${{ steps.calculate.outputs.Decision }}
      ReleaseVersion: ${{ steps.calculate.outputs.ReleaseVersion }}
      ReleasePlan: ${{ steps.calculate.outputs.ReleasePlan }}
    steps:
      - name: Check out the source
        uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0  # v7.0.0
        with:
          ref: ${{ github.sha }}
          persist-credentials: false

      - name: Calculate the version
        id: calculate
        uses: PSModule/Release-GHRepository@<released-commit-sha>
        with:
          Mode: calculate

  CI:
    needs: Plan
    permissions:
      contents: read
    uses: ./.github/workflows/Test-Actions.yml

  Publish:
    needs: [Plan, CI]
    if: >-
      ${{ github.event_name == 'push' && github.ref_name == github.event.repository.default_branch
      && needs.Plan.outputs.Decision == 'release' }}
    runs-on: ubuntu-24.04
    permissions:
      contents: read
      pull-requests: read
    concurrency:
      group: Release-GHRepository-stable
      queue: max
    steps:
      - name: Check out the tested commit
        uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0  # v7.0.0
        with:
          ref: ${{ github.sha }}
          persist-credentials: false

      - name: Require the calculated plan
        shell: pwsh
        env:
          RELEASE_PLAN: ${{ needs.Plan.outputs.ReleasePlan }}
        run: |
          if ([string]::IsNullOrWhiteSpace($env:RELEASE_PLAN)) {
            throw 'A release decision requires a plan from the Plan job.'
          }

      - name: Preview the tested release
        uses: PSModule/Release-GHRepository@<released-commit-sha>
        with:
          Mode: publish
          ReleasePlan: ${{ needs.Plan.outputs.ReleasePlan }}
          WhatIf: true

Keep this job read-only until you verify the preview. On a pull request with a valid decision, CI runs and Publish is skipped. On a default-branch push with a release decision, Publish runs after CI and previews a tag for the tested commit. A valid release:skip still runs CI but skips Publish. To enable writes, remove WhatIf: true, make sure the effective WhatIf is false, and change only the Publish job's contents permission to write. Do not run a second stable publisher for the same repository.

Technical details

GitHub Actions ran the example above in a private fixture repository. The test substituted this candidate SHA for both action pins and used a reusable CI job that checked the tested SHA. The initial direct push ran CI and skipped Publish. An unlabeled pull request failed Plan because it had no bump or default. After release:patch was added, Plan and CI passed and Publish was skipped on the pull request.

The squash push run 46291394817 passed Plan, CI, and Publish in that order. Publish accepted the unmodified plan from the same run and previewed v0.0.1 at the tested SHA bca15b761def930ef9bb7d4e4a058360b7aa90a0. The fixture had no releases or tags after the run. This demonstrates the hosted caller handoff in read-only mode. It does not verify live publication, branch rule enforcement, or Template-Action compatibility.

New: Stable releases account for earlier unpublished changes

The publisher checks the first-parent changes after the greatest completed stable release. The bump must cover the highest known increment in that range. If a prior change was skipped or has no known bump, apply an explicit aggregate bump after review.

Migration guide
  1. If earlier unpublished changes exist, include their consumer impact and upgrade steps in the current pull request notes.
  2. Add an HTML comment on its own line in the coverage evidence: <!-- release-range: <published-source-sha>...<last-preceding-sha> -->. Use full SHAs. Use initial in place of the published SHA for a first release.
  3. Check that the marker matches the current range and that the bump covers every change. If the published baseline advances, update the coverage evidence and run Calculate again. The marker identifies the range. It does not replace review approval.

Fixed: Retries keep the exact version and notes

Publish reserves the version with an annotated tag at the exact source. A retry uses the recorded version and full notes. It verifies an existing release rather than publishing a second version for the same stable commit. If publication stops after reservation, resume the original stable request before you publish later changes. Do not delete the stable release record to withdraw it.

Internal: Run the release decision and CI before publication

Plan / Release decision checks pull requests to main, including forks and documentation-only changes. CI runs independently, even if Plan fails or returns skip. A push to main repeats the decision and tests on the exact pushed commit. Stable publication requires both jobs to pass and the decision to be release.

Review only. Do not merge this pull request yet. The PR decision job is advisory. A label-only rerun does not invalidate an earlier pass on the same commit. The trusted check and live rule change remain under #112. Independent approval is still necessary. No stable release or live branch rule change is part of this review.

Technical details

This candidate includes the label and decision work from #118, #119, #120, and #121. All 363 local and hosted Pester cases passed. Tests simulate the publication writes for both paths, including the exact target, full notes, and recovery after tag reservation. Hosted lint, Plan, and the caller compatibility job passed. The private fixture verified the hosted read-only handoff. These results do not verify live stable publication or branch rule enforcement.

Changed surface Standards checked Framework docs checked Result
Labels, settings, and startup Automation Labels, PowerShell, Testing Labels and settings The candidate uses none unless a bump is configured. The spec and design still list patch as the shared default. Update those docs before publication.
Publication target and exact tags PowerShell, Testing GitHub publishing target The intent becomes durable at tag reservation, not before CI. The exact tags have a repository ruleset. Native immutable releases are not enabled. Withdrawal is not implemented.
Workflow and decision check GitHub Actions, YAML, least privilege Required decision check Calculate is read-only. CI gates stable publication. The PR job alone does not enforce a current decision at merge.
Related links
Release details
  • Release: Yes - the action changes its supported labels, settings, and publication events.
  • Version bump: Major - release:major selects the bump. Legacy labels and stable publication on pull request close are incompatible.
  • Mode: Stable - the publisher uses a push to main after Plan and CI succeed.
  • Labels: release:major

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a strict, “fail-closed” release-decision model based on a canonical, action-owned release: label set, removing legacy/bare label influence and eliminating default/automatic patching behavior.

Changes:

  • Adds a PowerShell helper module to define canonical release labels and to resolve/validate release decisions from PR labels.
  • Updates the main action logic to (a) provision canonical labels each run and (b) drive release/prerelease/skip decisions exclusively via the resolver.
  • Updates documentation, action inputs, and workflows to reflect the new owned-label contract and required events/permissions; adds unit tests for the resolver.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/Release-GHRepository.Helpers.Tests.ps1 Adds Pester coverage for canonical label definitions and release-decision resolution/rejection rules.
src/Release-GHRepository.Helpers.psm1 Introduces canonical label definitions and the strict Resolve-ReleaseDecision validator.
src/main.ps1 Provisions canonical labels and replaces legacy label/auto-patching logic with the resolver output.
README.md Documents the owned-label contract, workflow requirements, and v2→v3 migration steps.
action.yml Removes legacy label/auto-patching inputs and clarifies Prerelease input semantics.
.github/workflows/Release.yml Ensures label transitions are evaluated (unlabeled) and grants issues: write for label provisioning.
.github/workflows/Action-Test.yml Adds Pester unit tests and expands PR event types to include unlabeled.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/Action-Test.yml Resolved
Comment thread .github/workflows/Release.yml Resolved
Comment thread src/main.ps1 Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Suppressed comments (1)

Previously missed (1) — in code that hasn't changed since the last review.

src/main.ps1:154

  • $createPrerelease can become true for merged/closed pull requests when the PR targets a non-default branch (because $closedPullRequest only covers closed-but-not-merged). That would create prereleases from closed PRs, conflicting with the intended “open pull request prerelease” behavior.
$createPrerelease = $releaseDecision.Prerelease -and -not $createRelease -and -not $closedPullRequest

Comment thread .github/workflows/Release.yml Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.

Suppressed comments (1)

Previously missed (1) — in code that hasn't changed since the last review.

.github/workflows/Release.yml:19

  • pull_request_target sets github.ref to the base/default branch (e.g. refs/heads/main), so using ${{ github.workflow }}-${{ github.ref }} collapses all PR runs into the same concurrency group. With cancel-in-progress: true, activity on one PR can cancel an in-progress run for a different PR, which can interrupt release/prerelease creation or cleanup. Use a PR-scoped key (e.g. PR number) to isolate runs per PR (matching the README guidance).
concurrency:
  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
  cancel-in-progress: true

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.

Marius Storhaug (MariusStorhaug) added a commit to MSXOrg/docs that referenced this pull request Aug 29, 2026
Release guidance now defines one owned `release:` label set:
`release:patch`, `release:minor`, `release:major`,
`release:pre-release`, and `release:skip`. Release automation ignores
bare and unrelated labels, so only explicit release decisions affect
published versions.

## Changed: One release label contract

Release Management, Automation Labels, PR Format, Natural Language
examples, and the VS Code Extension Framework now use the same
namespaced values. Prereleases use `release:pre-release` with one bump
label, while non-releasing changes use `release:skip` alone.

## Changed: Ad hoc releases are optional

A labeled pull request merge is the required release path.
Implementations may add `workflow_dispatch` only when they need an
explicit ad hoc mechanism; it must use the same release controls and
require its decision and release-note context as inputs. Empty pull
requests and direct pushes are not release workarounds.

---
<details>
<summary>Technical details</summary>

- Replaced `release:none` and the unnamespaced `Prerelease` label.
- Defined valid and invalid combinations for the five owned release
labels.
- Made `workflow_dispatch` an optional implementation extension rather
than a mandatory release interface.
- Preserved the mainline removal of dependency-tool label guidance while
resolving the branch update.

| Changed surface | Standards checked | Framework docs checked | Result
|
| --- | --- | --- | --- |
| `src/docs/Capabilities/release-management/**` | Natural Language,
Markdown | Release Management | Aligned |
| Release-label references under `src/docs/**` | Natural Language,
Markdown | Automation Labels, PR Format, VS Code Extension Framework |
Aligned |

</details>

<details>
<summary>Relevant issues (or links)</summary>

### Related work

- References PSModule/Release-GHRepository#109
- References PSModule/Process-PSModule#524

</details>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@MariusStorhaug
Marius Storhaug (MariusStorhaug) marked this pull request as ready for review August 29, 2026 11:31
@MariusStorhaug
Marius Storhaug (MariusStorhaug) enabled stacked auto-merge (squash) August 29, 2026 11:31
Copilot AI lite review requested due to automatic review settings November 22, 2026 21:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The stable publication path cannot complete or safely recover because checkout credentials are disabled for required Git tag pushes, and a failed alias update can leave the release permanently inconsistent.

4 open issues

Review effort: Lite

Comment thread .github/workflows/Release.yml Resolved
Comment thread README.md Resolved
Comment thread src/main.ps1 Resolved
Comment thread src/main.ps1 Resolved
Marius Storhaug (MariusStorhaug) added a commit to MSXOrg/docs that referenced this pull request Nov 23, 2026
The Release Management design now explains how maintainers can
prerelease a reviewed fork contribution. The fork pull request stays
read-only and cannot authorize publication. This documentation change
requires no changes to existing release workflows or permissions.

<!-- ANNOUNCEMENT STOP -->

## New: Prerelease steps for fork contributions

An authorized maintainer reviews and approves the exact fork change
before merging it into a separate branch in the base repository. Trusted
publisher code uses the reviewed revision on that branch. If the route
supports prereleases from pull requests, the maintainer applies
`release:prerelease` to a same-repository pull request from the branch.
The branch alone does not enable publication on push.

<details>
<summary>Technical details</summary>

| Changed surface | Standards checked | Framework docs checked | Result
|
| --- | --- | --- | --- |
| `src/docs/Capabilities/release-management/design.md` | Documentation
Model, Markdown, GitHub Actions trust rule | Release Management spec and
design | Aligned |

- The new **Prerelease a fork contribution** section links to the rule
against running untrusted code with a writable token.
- Local and cross-repository link checks passed. All 66 Pester tests
passed. The Zensical build produced the new section anchor.
- The docs workflow deploys to GitHub Pages. It does not publish a
versioned artifact.
- No delivery issue is linked. The search for fork-related MSXOrg/docs
issues found none that this change resolves.

</details>

<details>
<summary>Related links</summary>

- References PSModule/Release-GHRepository#109.

</details>
Copilot AI lite review requested due to automatic review settings November 24, 2026 14:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human validation is still required for the write-enabled GitHub release workflow, immutable consumer compatibility, authenticated publication behavior, and recovery from concurrent or partial failures.

No open issues 🎉

4 resolved since last review

Review effort: Lite

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed because the changes introduce unverified workflow complexity, including a potentially unavailable test dependency and a concurrency-key mismatch that could allow validation and publication runs to overlap.

No open issues 🎉

Review effort: Lite

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Critical active findings show that both the release workflow and its README example lack the required issues: write permission for label creation, causing publishing to fail before release creation.

2 open issues

Review effort: Lite

Comment thread .github/workflows/Release.yml Resolved
Comment thread README.md Resolved
If your workflow relies on automatic patch bumps, set `DefaultBump:
patch`. Without a configured bump, a pull request needs one release bump
label or `release:skip`.

<!-- ANNOUNCEMENT STOP -->

## Breaking: A missing release decision fails the run

The shared `DefaultBump` is `none`. A bump label still overrides a
configured bump. `release:prerelease` selects the mode; it does not
supply a bump. A valid `release:skip` decision does not need a bump.

<details>
<summary>Migration guide</summary>

1. If your workflow uses the implicit `patch` behavior from the
namespaced label candidate, add `DefaultBump: patch` to the release
settings file or action inputs in the upgrade PR. Otherwise, apply one
bump label or `release:skip` to each pull request. You do not need to
set `none`.
2. If a workflow must require an explicit decision even when the file
sets a bump, use `DefaultBump: none` in that invocation.
3. Run the action with `WhatIf: true`. Check that one bump label, a
configured bump, and a valid skip each work. Check that
`release:prerelease` alone fails when no default is configured. Do not
use this draft branch as a production action pin.

</details>

<details>
<summary>Technical details</summary>

The scoped base is the fixed resolver revision
`fa4b27e2c4a12aeffb66ac01e43d443e7ca6edda` from
#109. The revised tests failed before the
change. All 237 Pester cases passed with the change. The tests simulate
publishing operations. No production rollout or template compatibility
is claimed. The linked Release Management design still lists `patch`;
align it before publication.

</details>

<details>
<summary>Related links</summary>

- Depends on #109
- References #112

</details>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Active issues remain, including a critical path that prevents stable releases from being published on merged pull requests, along with mutable runners, an incorrect default bump, and non-resumable label provisioning.

6 open issues
2 resolved since last review

Review effort: Lite

Comment thread src/Get-EventReleasePlan.ps1 Resolved
Comment thread .github/workflows/Release-Decision.yml Resolved
Comment thread .github/workflows/Release.yml Resolved
Comment thread action.yml Resolved
Comment thread src/main.ps1 Resolved
Comment thread .github/workflows/Action-Test.yml Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed because the omitted review evidence indicates critical defects in both zero-baseline version calculation and atomic maintenance of stable release aliases.

1 open issue
5 resolved since last review

Review effort: Lite

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

A moderate workflow issue prevents cleanup from running for closed same-repository pull requests, and a documented direct-push bump behavior remains inconsistent with the implementation.

3 open issues

Review effort: Lite

Comment thread .github/workflows/Release.yml Resolved
Comment thread src/Get-EventReleasePlan.ps1 Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Two critical active issues remain: first-release version planning fails without a stable baseline, and decision validation can accept stale pull-request title or body content.

2 open issues
3 resolved since last review

Review effort: Lite

Comment thread src/Release-GHRepository.Helpers.psm1 Resolved
Comment thread src/Test-ReleaseDecisionContext.ps1 Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed because critical hidden findings affect release-version baselining and allow publishing without the required CI gate, making the change too complex to approve confidently.

No open issues 🎉

2 resolved since last review

Review effort: Lite

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed because two critical hidden findings affect release safety: the workflow may allow publication without the required CI gate, and historical tags with separator-containing prefixes may be ignored, causing incorrect version calculations.

No open issues 🎉

Review effort: Lite

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

Labels

release:major Publish a major release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resolve releases from owned labels and effective settings

2 participants