Skip to content

Commit 8f20a95

Browse files
committed
feat: clear git log scope
1 parent 1f53309 commit 8f20a95

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/changelog.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,14 @@ function parseCommitLog(log: string) {
125125
.filter(s => s)
126126
.forEach(s => {
127127
const [sha, ...rest] = s.split(' ');
128-
const msg = rest.join(' ');
128+
let msg = rest.join(' ');
129129
// ignore merge and release commit
130130
if (msg.startsWith('Merge http') || msg.startsWith('chore: release')) {
131131
return;
132132
}
133133

134+
msg = msg.replace(/\(.*?\):/, ':');
135+
134136
const log = commits.find(s => s.msg === msg);
135137
if (log) {
136138
log.ids.push(sha);

0 commit comments

Comments
 (0)