diff --git a/src/changelog.ts b/src/changelog.ts index 55651f7..be1de87 100644 --- a/src/changelog.ts +++ b/src/changelog.ts @@ -31,15 +31,15 @@ export async function generate( if (!title) continue; + flag = trim(flag); + if (flag === "ignore") continue; + type = trim(type); type = (TYPES as { [type: string]: string | undefined })[type] ?? TYPES.other; category = category ? trim(category) : ""; - flag = trim(flag); - if (flag !== "breaking") flag = undefined as never; - title = trim(title).replace( PR_REGEX, (match, pull) => `[${match}](${repoUrl}/pull/${pull})`,