From 93af08726461fbfa769f3c72a0ac7b4f7df8d8ad Mon Sep 17 00:00:00 2001 From: koenkk Date: Mon, 6 Nov 2023 20:58:45 +0100 Subject: [PATCH] chore: fix changelog generator --- scripts/generateChangelog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generateChangelog.js b/scripts/generateChangelog.js index f9b78248d..3b7bdd5c4 100644 --- a/scripts/generateChangelog.js +++ b/scripts/generateChangelog.js @@ -49,7 +49,7 @@ for (const changelog of changelogs) { continue; } else if (changeMatch) { let localContext = changeMatch[2] ? changeMatch[2] : context; - if (!changes[localContext]) throw new Error(`Unknown context: ${localContext}`); + if (!changes[localContext]) localContext = 'error'; const commitUserKey = `${changelog.project}-${changeMatch[5]} `; let user = commitUserKey in commitUserLookup ? commitUserLookup[commitUserKey] :