File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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' , {
You can’t perform that action at this time.
0 commit comments