From e5e5bac2a932b2b2e4eb6b559d5545a992c21b96 Mon Sep 17 00:00:00 2001 From: Wes Date: Fri, 31 Jul 2026 13:22:53 -0600 Subject: [PATCH] fix(release): preserve main in desktop PR body (#3979) ## Summary - escape the Markdown backticks around `main` in the desktop release PR body - prevent the shell from executing `main` as command substitution - lock the heredoc contract into the release-ref test ## Verification - `scripts/test-release-ref-contract.sh` - `bash -n scripts/prepare-desktop-release.sh scripts/test-release-ref-contract.sh` - `git diff --check origin/main...HEAD` This is a follow-up to the cosmetic PR-body issue observed on #3972. It does not modify that frozen release candidate. Signed-off-by: Wes Co-authored-by: Carl --- scripts/prepare-desktop-release.sh | 2 +- scripts/test-release-ref-contract.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/prepare-desktop-release.sh b/scripts/prepare-desktop-release.sh index 9a6f4d1cf..fb586005f 100755 --- a/scripts/prepare-desktop-release.sh +++ b/scripts/prepare-desktop-release.sh @@ -71,7 +71,7 @@ cat >"$body" <&2 + exit 1 +fi "$repo_root/scripts/test-desktop-release-authorization.sh" if rg -q 'rule-suites|desktop-release-bypass-authorized|MERGED_BY' \ "$repo_root/scripts/verify-desktop-release-merge.sh" \