Skip to content

Commit 79ed722

Browse files
committed
chore: use log helper for info
1 parent 11031ba commit 79ed722

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const core = require('@actions/core')
22
const github = require('@actions/github')
33

4+
const { logInfo } = require('./log')
45
const { getInputs } = require('./util')
56

67
const { GITHUB_TOKEN, MERGE_METHOD, EXCLUDE_PKGS } = getInputs()
@@ -17,14 +18,14 @@ async function run () {
1718
const isDependabotPR = pr.user.login === 'dependabot[bot]'
1819

1920
if (!isDependabotPR) {
20-
return core.info('Not dependabot PR, skip merging.')
21+
return logInfo('Not dependabot PR, skip merging.')
2122
}
2223

2324
// dependabot branch names are in format "dependabot/npm_and_yarn/pkg-0.0.1"
2425
const pkgName = pr.head.ref.split('/').pop().split('-').shift()
2526

2627
if (EXCLUDE_PKGS.includes(pkgName)) {
27-
return core.info(`${pkgName} is excluded, skip merging.`)
28+
return logInfo(`${pkgName} is excluded, skip merging.`)
2829
}
2930

3031
await octokit.pulls.createReview({

0 commit comments

Comments
 (0)