File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,10 @@ export async function generateChangelog(
72
72
{ silent : true }
73
73
)
74
74
75
- const commits = command . stdout . trim ( ) . split ( '\n' )
75
+ const commits = command . stdout
76
+ . trim ( )
77
+ . split ( '\n' )
78
+ . filter ( s => s )
76
79
core . info ( `Found commits ${ commits } ` )
77
80
78
81
// There were no differences in commits between the current version and the previous version.
@@ -117,8 +120,7 @@ async function fetchPullRequestBodyFromCommits(
117
120
) : Promise < string [ ] > {
118
121
let commitsSubQuery = ''
119
122
for ( const oid of commits ) {
120
- if ( oid ) {
121
- commitsSubQuery += `
123
+ commitsSubQuery += `
122
124
commit_${ oid } : object(oid: "${ oid } ") {
123
125
... on Commit {
124
126
oid
@@ -133,7 +135,6 @@ async function fetchPullRequestBodyFromCommits(
133
135
}
134
136
}
135
137
`
136
- }
137
138
}
138
139
139
140
const response = await graphqlWithAuth ( `
You can’t perform that action at this time.
0 commit comments