Skip to content

Commit 56b7c70

Browse files
committed
use core instead of console.log
1 parent 6b95454 commit 56b7c70

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/github.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {graphql} from '@octokit/graphql'
22
import shell from 'shelljs'
3+
import * as core from '@actions/core'
34

45
// Regexes to find the changelog contents within a PR.
56
const FIXES_REGEX = /^CHANGELOG-FIXES:(.*)/gm
@@ -87,7 +88,7 @@ async function fetchPullRequestBodyFromCommits(
8788
commits: string[],
8889
graphqlWithAuth: Function
8990
): Promise<string[]> {
90-
console.log(`generated commits ${commits}`)
91+
core.info(`generated commits ${commits}`)
9192

9293
let commitsSubQuery = ''
9394
for (const oid of commits) {
@@ -117,7 +118,7 @@ async function fetchPullRequestBodyFromCommits(
117118
`)
118119

119120
const commitsInfo: string[] = []
120-
for (const oid of commits) {)
121+
for (const oid of commits) {
121122
const commitResponse = response.repository[`commit_${oid}`]
122123
if (commitResponse.associatedPullRequests.nodes.length > 0) {
123124
commitsInfo.push(commitResponse.associatedPullRequests.nodes[0].body)

0 commit comments

Comments
 (0)