Repository navigation
fix(build): keep typographic single quotes in release notes - #245
Merged
Merged
Conversation
Update-ModuleManifest doubles ' in the single-quoted ReleaseNotes string but not U+2018..U+201B, which PowerShell also reads as single quotes. The Pivot.Demo 0.7.0 notes contain `O’Neil`, so the built manifest was invalid and the release stopped in its prepare step. Double those characters before the call; each stays one character in the manifest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
The release of PowerShellUniversal.Component.Pivot.Demo 0.7.0 stopped in its prepare step (run): "Cannot update the manifest file … because the manifest is not valid". The CHANGELOG section contains
O’Neil(U+2019).Update-ModuleManifestdoubles'in the single-quotedReleaseNotesstring but not U+2018 to U+201B, which PowerShell also reads as single quotes, so the string ended early.Publish-Module.ps1now doubles those characters before the call; PowerShell reads each pair as one character, so the gallery shows the text unchanged. The GitHub release text was never affected and keeps using the original notes.Whole-change check
Code:
build/Publish-Module.ps1, read whole.Update-ModuleManifest, with the reason in the comment. The GitHub notes still come from$notes.Tests:
tests/powershell/Publish-Module.Tests.ps1gets one case with’in a CHANGELOG section, run twice like the existing quote case.Checklist (PRODUCT.md)
Test plan
Invoke-Pester tests/powershell/Publish-Module.Tests.ps1: 4 passed, 1 failed before the fix; 5 passed afterInvoke-Pester tests/powershell: 377 passed, 0 failednpm test: 238 tests, 230 pass, 0 failBuild-Module.ps1 -Module PowerShellUniversal.Component.Pivot.Demo, thenPublish-Module.ps1 -Module PowerShellUniversal.Component.Pivot.Demo -Version 0.7.0; the built manifest's notes readO’Neil🤖 Generated with Claude Code