From 76b67b5d7a48cb79125ab18be6864c77f44bbb9d Mon Sep 17 00:00:00 2001 From: nerdCopter <56646290+nerdCopter@users.noreply.github.com> Date: Thu, 2 Jul 2026 15:31:23 -0500 Subject: [PATCH 1/2] fix: append build info to release notes instead of replacing The 'Update release notes' step in the release workflow ran 'gh release edit --notes \"**Build Information:** ...\"' which replaced the entire release body written when the release was created, discarding the changelog/description. Fetch the existing release body first and append the build-info footer to it instead of overwriting it. Co-Authored-By: Claude Sonnet 5 --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 54e7a5e..135141c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -108,7 +108,8 @@ jobs: GH_TOKEN: ${{ github.token }} run: | BUILD_INFO="${{ steps.version.outputs.build_info }}" + EXISTING_NOTES=$(gh release view "${{ github.ref_name }}" --repo "${{ github.repository }}" --json body -q .body) gh release edit "${{ github.ref_name }}" \ - --notes "**Build Information:** $BUILD_INFO" \ + --notes "$(printf '%s\n\n---\n**Build Information:** %s' "$EXISTING_NOTES" "$BUILD_INFO")" \ --repo "${{ github.repository }}" echo "🎉 Release $BUILD_INFO is now live with platform-specific ZIP files!" From fe57c26fdd4bc15acc6e4c4a49e06bad562f1574 Mon Sep 17 00:00:00 2001 From: nerdCopter <56646290+nerdCopter@users.noreply.github.com> Date: Thu, 2 Jul 2026 15:41:36 -0500 Subject: [PATCH 2/2] fix: guard against null release body in notes-append step Address CodeRabbit feedback on PR #46: gh release view --json body -q .body prints the literal string "null" (jq -r quirk) when a release has no description at all, which would leak into the appended notes. Use -q '.body // ""' to fall back to an empty string instead. Co-Authored-By: Claude Sonnet 5 --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 135141c..4fe20d1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -108,7 +108,7 @@ jobs: GH_TOKEN: ${{ github.token }} run: | BUILD_INFO="${{ steps.version.outputs.build_info }}" - EXISTING_NOTES=$(gh release view "${{ github.ref_name }}" --repo "${{ github.repository }}" --json body -q .body) + EXISTING_NOTES=$(gh release view "${{ github.ref_name }}" --repo "${{ github.repository }}" --json body -q '.body // ""') gh release edit "${{ github.ref_name }}" \ --notes "$(printf '%s\n\n---\n**Build Information:** %s' "$EXISTING_NOTES" "$BUILD_INFO")" \ --repo "${{ github.repository }}"