Skip to content

Commit

Permalink
fix(script): 修复 git commit 类型判断错误
Browse files Browse the repository at this point in the history
  • Loading branch information
liuweiGL committed Jul 2, 2021
1 parent 5ca08f8 commit 9ebe727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/script/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,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 9ebe727

Please sign in to comment.