breaking: Omit flag from the log title

This commit is contained in:
Ardalan Amini committed 2020-10-18 01:35:33 +03:30
1 parent f099469470
commit eeb68764f2
1 file changed
+1 -3
+1 -3
View File
@@ -44,9 +44,7 @@ export async function generate(
PR_REGEX,
(match, pull) => `[${match}](${repoUrl}/pull/${pull})`,
);
if (flag) title = title.replace(new RegExp(` ?\\[${flag}\\]$`), "");
title = `${title} ([${sha.slice(0, 8)}](${repoUrl}/commit/${sha}))`;
if (flag) title += ` **[${flag}]**`;
commits[type] = commits[type] ?? {};
commits[type][category] = commits[type][category] ?? [];
@@ -92,7 +90,7 @@ function trim(value: string): string {
return value.trim().replace(/ {2,}/g, " ");
}
const COMMIT_REGEX = /^([^)]*)(?:\(([^)]*?)\)|):(.*?(?:\[([^\]]+?)\]|))\s*$/;
const COMMIT_REGEX = /^([^)]*)(?:\(([^)]*?)\)|):(.*?)(?:\[([^\]]+?)\]|)\s*$/;
const PR_REGEX = /#([1-9]\d*)/g;
const TYPES = {