From af35cccb5fb13bd3f99937e893d7ed00e8bbfeac Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Fri, 27 Mar 2026 21:09:38 +0700 Subject: [PATCH] fix(release): skip release notes sync when no changelog entry exists Draft releases don't have changelog entries, so the script should log and continue rather than throwing. --- scripts/sync-release-notes-from-changelog.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/sync-release-notes-from-changelog.mjs b/scripts/sync-release-notes-from-changelog.mjs index 65223b353..8f0e0fc08 100644 --- a/scripts/sync-release-notes-from-changelog.mjs +++ b/scripts/sync-release-notes-from-changelog.mjs @@ -150,7 +150,8 @@ function main() { const targetEntry = entries.find((entry) => entry.tag === targetTag); if (!targetEntry) { - throw new Error(`No matching changelog section found for ${targetTag}.`); + console.log(`No matching changelog section found for ${targetTag}. Skipping.`); + return; } const tempDir = mkdtempSync(path.join(tmpdir(), "paseo-release-notes-"));