Commit 72f03fa
chore(ci): plumb semantic-release notes into GitHub Release body (#5317)
Stage A (#prior PR) added @semantic-release/release-notes-generator to
the plugin chain and a manual backfill workflow to validate the format.
This change wires the same notes into the production release pipeline so
future releases on develop/main come with a populated GH Release body
instead of an empty page.
- release.yml: capture new_release_notes from the plan job's
cycjimmy/semantic-release-action step into a release_notes job output
using a heredoc with a random delimiter. SR_NOTES is passed via env and
emitted with printf (not echo) so attacker-influenced commit bodies / PR
titles can't be interpolated as shell. The workflow_dispatch re-cut path
skips semantic-release entirely, so release_notes is the empty string in
that case - the operator can follow up with the backfill-release-notes
workflow to populate the body afterwards.
- release-shared.yml: new optional release_notes workflow_call input,
wired as the body of the softprops/action-gh-release step that creates
the draft release. No generate_release_notes: true - the action appends
GitHub's auto notes to any supplied body, which would duplicate content.
## What kind of change does this PR introduce?
Bug fix, feature, docs update, ...
## What is the current behavior?
Please link any relevant issues here.
## What is the new behavior?
Feel free to include screenshots if it includes visual changes.
## Additional context
Add any other context or screenshots.
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 848fe45 commit 72f03fa
2 files changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
4 | 20 | | |
5 | 21 | | |
6 | 22 | | |
| |||
19 | 35 | | |
20 | 36 | | |
21 | 37 | | |
| 38 | + | |
22 | 39 | | |
23 | 40 | | |
24 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
335 | 346 | | |
336 | 347 | | |
337 | 348 | | |
| |||
0 commit comments