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 11const core = require ( '@actions/core' )
22const github = require ( '@actions/github' )
33
4+ const { logInfo } = require ( './log' )
45const { getInputs } = require ( './util' )
56
67const { 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 ( {
You can’t perform that action at this time.
0 commit comments