◐ Shell
clean mode source ↗

[release/v7.7.0-preview.1] Fix changelog grab failure when only one header exists. by jshigetomi · Pull Request #27372 · PowerShell/PowerShell

Backport of #27371 to release/v7.7.0-preview.1

Triggered by @jshigetomi on behalf of @jshigetomi

Original CL Label: CL-BuildPackaging

/cc @PowerShell/powershell-maintainers

Impact

REQUIRED: Choose either Tooling Impact or Customer Impact (or both). At least one checkbox must be selected.

Tooling Impact

  • Required tooling change
  • Optional tooling change (include reasoning)

Fixes changelog extraction in release pipeline to handle cases with only one release heading, unblocking the 7.7.0-preview.1 GitHub release.

Customer Impact

  • Customer reported
  • Found internally

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

This is not a regression.

Testing

Verified by original PR — logic correctly handles changelogs with only one release heading. N/A for automated tests (pipeline script change).

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

Low risk — only modifies changelog extraction logic in release pipeline YAML; no runtime or customer-facing impact.