From b41eb6e763338ec6460d0f22fdee8b3f8a1bf476 Mon Sep 17 00:00:00 2001 From: "Joseph T. Lyons" Date: Wed, 7 Jan 2026 09:24:02 -0500 Subject: [PATCH] Add fallback message when preview changelog is empty (#46260) Avoid publishing preview releasing that say nothing in the release notes: SCR-20260107-ioxx Release Notes: - N/A *or* Added/Fixed/Improved ... --- script/draft-release-notes | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/script/draft-release-notes b/script/draft-release-notes index 2436aa6617..da819da88e 100755 --- a/script/draft-release-notes +++ b/script/draft-release-notes @@ -77,7 +77,12 @@ async function main() { } } - console.log(releaseNotes.join("\n") + "\n"); + if (releaseNotes.length === 0) { + const compareUrl = `https://github.com/zed-industries/zed/compare/${priorTag}...${tag}#commits_bucket`; + console.log(`No public-facing changes in this release. [View the commits](${compareUrl}).\n`); + } else { + console.log(releaseNotes.join("\n") + "\n"); + } } function getCommits(oldTag, newTag) {