From 06d4252a867dfe594eba6a5c53bb8e4bbe6735db Mon Sep 17 00:00:00 2001 From: Patrick Schaper Date: Wed, 20 May 2026 15:35:33 +0200 Subject: [PATCH] fix: update release PR body when reusing existing PR - call gh pr edit when a release PR already exists so the description always reflects the latest changelog entries Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b8c1105..575ed5c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -216,6 +216,8 @@ jobs: pr_url="$(gh pr list --head "${branch}" --base main --state open --json url --jq '.[0].url')" if [[ -z "${pr_url}" || "${pr_url}" == "null" ]]; then pr_url="$(gh pr create --base main --head "${branch}" --title "chore(release): ${version}" --body "${pr_body}")" + else + gh pr edit "${pr_url}" --body "${pr_body}" fi echo "url=${pr_url}" >> "$GITHUB_OUTPUT"