Add fallback message when preview changelog is empty (#46260)
Avoid publishing preview releasing that say nothing in the release notes: <img width="947" height="258" alt="SCR-20260107-ioxx" src="https://github.com/user-attachments/assets/97204551-8f55-43fb-8c9c-35491a4f1378" /> Release Notes: - N/A *or* Added/Fixed/Improved ...
This commit is contained in:
1 parent
82826e723e
commit
b41eb6e763
1 file changed
+6
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user