Skip to content

Commit

Permalink
build: fix git message sort incorrect (#1708)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuweiGL authored Jul 3, 2021
1 parent e6fd58e commit 617ce88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 617ce88

Please sign in to comment.