Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add fallback message when preview changelog is empty (#46260)
Joseph T. Lyonsb41eb6e76333
diff --git a/script/draft-release-notes b/script/draft-release-notesindex 2436aa66178..da819da88e1 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) {