Commit aadfaea
ci(release): populate PSData.ReleaseNotes from CHANGELOG at publish time
So a scaffolded module's PowerShell Gallery release-notes panel shows the curated,
user-facing notes for each version (matching the GitHub release body) instead of a
static CHANGELOG link.
- build.depend.psd1: add ChangelogManagement 3.1.0 (Keep a Changelog parser).
- build.psake.ps1: new UpdateReleaseNotes task (Depends Build) that reads the entry
matching the module version via Get-ChangelogData and sets the built manifest's
PrivateData.PSData.ReleaseNotes via Update-ModuleManifest. Wired in via
$PSBPublishDependency so it runs before Publish-PSBuildModule. Non-fatal if the
changelog can't be read or has no entry for the version.
Mirrors the DSC Community Sampler pattern. Scaffolded modules use SemVer Keep a
Changelog (CHANGELOG.template.md), the format this was validated against in
ScheduledTasksManager. The template repo itself never runs this path (its publish
is guarded against the un-initialized placeholder).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 341f921 commit aadfaea
2 files changed
Lines changed: 46 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
28 | 33 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
48 | 89 | | |
49 | 90 | | |
0 commit comments