Skip to content

Commit 6c061a3

Browse files
committed
grep ci: Version Packages
1 parent 65b4abe commit 6c061a3

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎scripts/create-github-release.mjs‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ async function resolveAuthorForPR(prNumber) {
5454
}
5555

5656
// Get the previous release commit to diff against.
57-
// This script runs right after the "ci: changeset release" commit is pushed,
57+
// This script runs right after the "ci: Version Packages" PR is merged,
5858
// so HEAD is the release commit.
5959
const releaseLogs = execSync(
60-
'git log --oneline --grep="ci: changeset release" --format=%H',
60+
'git log --oneline --grep="^ci: Version Packages" --grep="^ci: changeset release" --format=%H',
6161
)
6262
.toString()
6363
.trim()
@@ -159,7 +159,11 @@ for (const line of commits) {
159159
const [, hash, email, subject] = match
160160

161161
// Skip release commits
162-
if (subject.startsWith('ci: changeset release')) continue
162+
if (
163+
subject.startsWith('ci: Version Packages') ||
164+
subject.startsWith('ci: changeset release')
165+
)
166+
continue
163167

164168
// Parse conventional commit: type(scope)!: message
165169
const conventionalMatch = subject.match(/^(\w+)(?:\(([^)]*)\))?(!)?:\s*(.*)$/)

0 commit comments

Comments
 (0)