From 46046395ff3109786a6d5b121886a8d9d48cfac0 Mon Sep 17 00:00:00 2001 From: alvarius Date: Thu, 7 Sep 2023 12:27:32 +0200 Subject: [PATCH] fix(ci): only process added changesets in changelog.ts script (#1411) --- scripts/changelog.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/changelog.ts b/scripts/changelog.ts index da3014beba..17ae0d2edb 100644 --- a/scripts/changelog.ts +++ b/scripts/changelog.ts @@ -99,7 +99,7 @@ async function getChanges(include: "diff" | "all") { const changesetDiff = (await execa("git", ["diff", "main", ".changeset/pre.json"])).stdout; // Get the list of changesets - const addedLinesRegex = /\+\s+"([^"]+)"/g; + const addedLinesRegex = /\+\s+"(?!.*:)([^"]+)"/g; changesetsToInclude.push(...[...changesetDiff.matchAll(addedLinesRegex)].map((match) => match[1])); } else if (include === "all") { // Load all current changesets from the .changeset/pre.json file