Skip to content

Commit de5a38e

Browse files
committed
ci: Ensure correct PR is found in changelog gen
1 parent 5e6a2f0 commit de5a38e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/update-changelog.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ async function main () {
3535
}
3636

3737
// Get the current PR for this release, if it exists
38-
const currentPRFetch = await $fetch(`https://api.github.com/repos/CodeDredd/pinia-orm/pulls?head=v${newVersion}`)
39-
const currentPR = currentPRFetch.data.find(pull => pull.title === newVersion)
38+
const currentPR = (await $fetch(`https://api.github.com/repos/CodeDredd/pinia-orm/pulls?head=v${newVersion}`)).find(pull => pull.title === `v${newVersion}`)
4039
const contributors = await getContributors()
4140

4241
console.log('CurrentPR', currentPR)

0 commit comments

Comments
 (0)