From 617ce88ca1950a65e12b53bdde84f7ae6da60247 Mon Sep 17 00:00:00 2001 From: liuwei Date: Sat, 3 Jul 2021 11:09:46 +0800 Subject: [PATCH] build: fix git message sort incorrect (#1708) --- scripts/release/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/release/index.ts b/scripts/release/index.ts index c3ceab2b222..b8672c815d0 100644 --- a/scripts/release/index.ts +++ b/scripts/release/index.ts @@ -55,7 +55,7 @@ const getGroupChanges = (from = lastTag(), to = 'HEAD') => { ]) changes.forEach(({ summary, author, sha }) => { for (const [group, value] of CommitGroupBy) { - if (value.some((target) => new RegExp(target).test(summary))) { + if (value.some((target) => summary.indexOf(target) === 0)) { results.forEach((item) => { if (item[0] === group) { item[1].push(