Skip to content

Commit

Permalink
fix(ci): only process added changesets in changelog.ts script (#1411)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrs committed Sep 7, 2023
1 parent 55377ff commit 4604639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4604639

Please sign in to comment.