Skip to content

Commit e2579bb

Browse files
authored
ref: Make lastReleasePos checks for yarn changelog stricter (#17340)
Commits like `meta: Re-organize changelog to add v8 page` tripped this up. Our changelog entries always follow `meta(changelog)` so we should just check for that.
1 parent dbdd296 commit e2579bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/get-commit-list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { execSync } from 'child_process';
33
function run(): void {
44
const commits = execSync('git log --format="- %s"').toString().split('\n');
55

6-
const lastReleasePos = commits.findIndex(commit => /- meta(.*)changelog/i.test(commit));
6+
const lastReleasePos = commits.findIndex(commit => /- meta\(changelog\)/i.test(commit));
77

88
const newCommits = commits.splice(0, lastReleasePos).filter(commit => {
99
// Filter out merge commits

0 commit comments

Comments
 (0)