Skip to content

Commit 5e6a2f0

Browse files
committed
ci: Script update changelog is failing
1 parent 8ac3119 commit 5e6a2f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/update-changelog.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ 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}`)).find(pull => pull.title === newVersion)
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)
3940
const contributors = await getContributors()
4041

42+
console.log('CurrentPR', currentPR)
4143
console.info('New Version ', newVersion)
4244

4345
const releaseNotes = [
@@ -51,8 +53,6 @@ async function main () {
5153
contributors.map(c => `- ${c.name} (@${c.username})`).join('\n'),
5254
].join('\n')
5355

54-
console.info('Release notes', releaseNotes)
55-
5656
// Create a PR with release notes if none exists
5757
if (!currentPR) {
5858
return await $fetch('https://api.github.com/repos/CodeDredd/pinia-orm/pulls', {

0 commit comments

Comments
 (0)