[release/v7.7.0-preview.1] Fix changelog grab failure when only one header exists.#27372
Merged
jshigetomi merged 1 commit intoPowerShell:release/v7.7.0-preview.1from Apr 28, 2026
Conversation
…7371) Co-authored-by: Justin Chung <[email protected]>
115541a
into
PowerShell:release/v7.7.0-preview.1
36 of 37 checks passed
Contributor
There was a problem hiding this comment.
Pull request overview
Improves the robustness of changelog extraction in the GitHub/NuGet release pipeline so release notes generation works when the changelog contains only a single release heading.
Changes:
- Ensure heading match results are always treated as an array and fail fast with a clear error when no headings are found.
- Handle single-heading changelogs by extracting from the first heading through the end of the file (and fix the extracted line-count calculation).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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
Regression
REQUIRED: Check exactly one box.
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.
Low risk — only modifies changelog extraction logic in release pipeline YAML; no runtime or customer-facing impact.