Commit 90226e1
committed
fix(release): populate changelog on workflow_dispatch reruns
The "What's changed" section was built solely from
github.event.pull_request.body, which is only present on the
pull_request merge event. On a workflow_dispatch re-run that context
is empty, so the GitHub release published with an empty changelog and
failed silently.
Resolve RELEASE_PR_BODY robustly: fall back to the body of the most
recently merged changeset-release/main PR when the pull_request context
is absent. Also fail loudly in generate-github-release.mjs when a
non-prerelease resolves no changelog content, so an empty changelog can
no longer publish silently. Prereleases remain exempt.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014CjQVhMqLbRo3VuLaGSLfg1 parent 0631c83 commit 90226e1
2 files changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
146 | 161 | | |
147 | 162 | | |
148 | 163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
242 | 257 | | |
243 | 258 | | |
244 | 259 | | |
| |||
0 commit comments