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 () {
35
35
}
36
36
37
37
// 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 )
39
40
const contributors = await getContributors ( )
40
41
42
+ console . log ( 'CurrentPR' , currentPR )
41
43
console . info ( 'New Version ' , newVersion )
42
44
43
45
const releaseNotes = [
@@ -51,8 +53,6 @@ async function main () {
51
53
contributors . map ( c => `- ${ c . name } (@${ c . username } )` ) . join ( '\n' ) ,
52
54
] . join ( '\n' )
53
55
54
- console . info ( 'Release notes' , releaseNotes )
55
-
56
56
// Create a PR with release notes if none exists
57
57
if ( ! currentPR ) {
58
58
return await $fetch ( 'https://api.github.com/repos/CodeDredd/pinia-orm/pulls' , {
You can’t perform that action at this time.
0 commit comments