Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: PSModule/Process-PSModule
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: PSModule/Process-PSModule
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fix-dispatch-version-label
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 4 files changed
  • 2 contributors

Commits on Sep 2, 2026

  1. fix: honour the merged PR version label on a default-branch dispatch

    A workflow_dispatch on the default branch is the documented recovery route for
    a failed or cancelled release run. Pull request association was gated on
    $isPush, so a dispatch resolved no pull request, saw no version label, and
    silently applied the AutoPatching patch fallback.
    
    Widen the gate to cover a manual dispatch on the default branch, so the same
    association and selection path runs for the same merge commit.
    
    Also fail loudly when a merged default-branch pull request is associated with
    the commit but does not match it, instead of falling back to a patch bump. A
    wrong version published to the PowerShell Gallery cannot be reclaimed.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    2 people authored and Marius Storhaug committed Sep 2, 2026
    Configuration menu
    Copy the full SHA
    27dedd6 View commit details
    Browse the repository at this point in the history
  2. refactor: make release pull request resolution unit-testable

    Extract the gate, selection, and no-pull-request decision from main.ps1 into
    Resolve-ReleasePullRequest, with the GitHub lookup injected as a script block.
    The composed logic that produced the wrong version is now covered directly
    rather than re-implemented in a test.
    
    Add Get-DiscardedReleasePullRequest so a merged default-branch pull request that
    does not match the released commit fails the run instead of silently applying a
    patch bump. Open pull requests and non-default-branch merges are ignored, so a
    direct push and a feature-branch push are unaffected.
    
    Each new test was verified to fail against the specific defect it guards.
    
    Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
    2 people authored and Marius Storhaug committed Sep 2, 2026
    Configuration menu
    Copy the full SHA
    189d3eb View commit details
    Browse the repository at this point in the history
Loading