feat: Add ignore flag

This commit is contained in:
Ardalan Amini committed 2020-10-18 02:03:27 +03:30
1 parent 4635917ef5
commit b139036672
1 file changed
+3 -3
+3 -3
View File
@@ -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})`,