Skip to content

Commit 8ac3119

Browse files
committed
ci: Update changelog gen script to get the right PR
1 parent 424bf4d commit 8ac3119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/update-changelog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ 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=v${newVersion}`)
38+
const currentPR = (await $fetch(`https://api.github.com/repos/CodeDredd/pinia-orm/pulls?head=v${newVersion}`)).find(pull => pull.title === newVersion)
3939
const contributors = await getContributors()
4040

4141
console.info('New Version ', newVersion)

0 commit comments

Comments
 (0)