Skip to content

fix(build): keep typographic single quotes in release notes - #245

Merged
eizedev merged 2 commits into
mainfrom
fix/release-notes-curly-quotes
Nov 26, 2026
Merged

eizedev merged 2 commits into
mainfrom
fix/release-notes-curly-quotes

Conversation

@eizedev

@eizedev eizedev commented Nov 26, 2026

Copy link
Copy Markdown
Owner

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-ModuleManifest doubles ' in the single-quoted ReleaseNotes string but not U+2018 to U+201B, which PowerShell also reads as single quotes, so the string ended early. Publish-Module.ps1 now 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.

  • Job unchanged: check the tag against the manifest, put the CHANGELOG section into the built manifest and the GitHub release text, pack the zip.
  • One line added before Update-ModuleManifest, with the reason in the comment. The GitHub notes still come from $notes.

Tests: tests/powershell/Publish-Module.Tests.ps1 gets one case with ’ in a CHANGELOG section, run twice like the existing quote case.

Checklist (PRODUCT.md)

  • Linked issue: none; the failed release run above
  • New test fails without this change (same error as the release run) and passes with it; no test weakened
  • Docs and upgrading notes: nothing user-facing changes
  • Reviewed before opening by someone who did not write it (not done; small fix, needed for the release)

Test plan

  • Invoke-Pester tests/powershell/Publish-Module.Tests.ps1: 4 passed, 1 failed before the fix; 5 passed after
  • Invoke-Pester tests/powershell: 377 passed, 0 failed
  • npm test: 238 tests, 230 pass, 0 fail
  • Real prepare step on this branch: Build-Module.ps1 -Module PowerShellUniversal.Component.Pivot.Demo, then Publish-Module.ps1 -Module PowerShellUniversal.Component.Pivot.Demo -Version 0.7.0; the built manifest's notes read O’Neil

🤖 Generated with Claude Code

eizedev and others added 2 commits November 27, 2026 00:01
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>
@eizedev
eizedev merged commit fb742a8 into main Nov 26, 2026
12 checks passed
@eizedev
eizedev deleted the fix/release-notes-curly-quotes branch November 26, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant