diff --git a/scripts/get-commit-list.ts b/scripts/get-commit-list.ts index bceccfb317de..04c5932c12cd 100644 --- a/scripts/get-commit-list.ts +++ b/scripts/get-commit-list.ts @@ -3,7 +3,7 @@ import { execSync } from 'child_process'; function run(): void { const commits = execSync('git log --format="- %s"').toString().split('\n'); - const lastReleasePos = commits.findIndex(commit => /- meta(.*)changelog/i.test(commit)); + const lastReleasePos = commits.findIndex(commit => /- meta\(changelog\)/i.test(commit)); const newCommits = commits.splice(0, lastReleasePos).filter(commit => { // Filter out merge commits