From 504253dbc1a3e433dfc77b2775d1bbfb4c94af92 Mon Sep 17 00:00:00 2001 From: Patrick Schaper Date: Wed, 20 May 2026 15:14:46 +0200 Subject: [PATCH] fix: include changelog section in release PR body - replace generic summary with the new version's changelog entries - makes it easy to review what's shipping without opening CHANGELOG.md Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 800b542..b8c1105 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -205,8 +205,12 @@ jobs: version="${{ steps.version.outputs.next }}" branch="${{ steps.version.outputs.branch }}" + + # Extract the changelog section for this version to include in the PR body + changelog_section="$(awk "/^## \[${version}\]/{found=1; next} found && /^## /{exit} found{print}" CHANGELOG.md)" + pr_body="$( - printf '## Summary\n- bump VERSION to %s\n- prepare the %s release\n\n## Validation\n- `./build.sh`\n' "${version}" "${version}" + printf '## What'\''s changing\n\n%s\n\n## Validation\n- `./build.sh`\n' "${changelog_section}" )" pr_url="$(gh pr list --head "${branch}" --base main --state open --json url --jq '.[0].url')"