Skip to content

Commit 4b0b95a

Browse files
committed
ci: Fix changelog version check
1 parent b4b0a4f commit 4b0b95a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/update-changelog.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,12 @@ async function main () {
3535
}
3636

3737
// Get the current PR for this release, if it exists
38-
const [currentPR] = await $fetch(`https://api.github.com/repos/CodeDredd/pinia-orm/pulls?head=nuxt:v${newVersion}`)
38+
const [currentPR] = await $fetch(`https://api.github.com/repos/CodeDredd/pinia-orm/pulls?head=pinia-orm:v${newVersion}`)
3939
const contributors = await getContributors()
4040

41+
console.info('New Version ', newVersion)
42+
console.info('Current PR ', currentPR)
43+
4144
const releaseNotes = [
4245
currentPR?.body.replace(/## 👉 Changelog[\s\S]*$/, '') || `> ${newVersion} is the next ${bumpType} release.\n>\n> **Timetable**: to be announced.`,
4346
'## 👉 Changelog',

0 commit comments

Comments
 (0)