Skip to content

Commit e58c099

Browse files
committed
ref: Make lastReleasePos checks for yarn changelog stricter
Commits like `- meta: Re-organize changelog to add v8 page ([#17327](https://github.com/getsentry/sentry-javascript/pull/17327))` tripped this up. Our changelog entries always follow `meta(changelog)` so we should just check for that.
1 parent ed07836 commit e58c099

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)