From e58c09909ee3fd3e66864e68c582939a3d7edc2f Mon Sep 17 00:00:00 2001 From: Andrei Borza Date: Wed, 6 Aug 2025 17:29:58 +0200 Subject: [PATCH] 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. --- scripts/get-commit-list.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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