File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { graphql } from '@octokit/graphql'
2
2
import shell from 'shelljs'
3
+ import * as core from '@actions/core'
3
4
4
5
// Regexes to find the changelog contents within a PR.
5
6
const FIXES_REGEX = / ^ C H A N G E L O G - F I X E S : ( .* ) / gm
@@ -87,7 +88,7 @@ async function fetchPullRequestBodyFromCommits(
87
88
commits : string [ ] ,
88
89
graphqlWithAuth : Function
89
90
) : Promise < string [ ] > {
90
- console . log ( `generated commits ${ commits } ` )
91
+ core . info ( `generated commits ${ commits } ` )
91
92
92
93
let commitsSubQuery = ''
93
94
for ( const oid of commits ) {
@@ -117,7 +118,7 @@ async function fetchPullRequestBodyFromCommits(
117
118
` )
118
119
119
120
const commitsInfo : string [ ] = [ ]
120
- for ( const oid of commits ) { )
121
+ for ( const oid of commits ) {
121
122
const commitResponse = response . repository [ `commit_${ oid } ` ]
122
123
if ( commitResponse . associatedPullRequests . nodes . length > 0 ) {
123
124
commitsInfo . push ( commitResponse . associatedPullRequests . nodes [ 0 ] . body )
You can’t perform that action at this time.
0 commit comments