We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e6a2f0 commit de5a38eCopy full SHA for de5a38e
scripts/update-changelog.ts
@@ -35,8 +35,7 @@ async function main () {
35
}
36
37
// 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)
+ const currentPR = (await $fetch(`https://api.github.com/repos/CodeDredd/pinia-orm/pulls?head=v${newVersion}`)).find(pull => pull.title === `v${newVersion}`)
40
const contributors = await getContributors()
41
42
console.log('CurrentPR', currentPR)
0 commit comments