Skip to content

Commit

Permalink
actors: dependabot[bot]||renovate[bot]
Browse files Browse the repository at this point in the history
  • Loading branch information
buluma committed Jan 9, 2024
1 parent 88dbe2e commit 5b65bc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const { payload: { sender } } = github.context // eslint-disable-line camelcase

// exit early if PR is not by dependabot
if (!sender || !['dependabot[bot]', 'dependabot-preview[bot]', 'renovate[bot]'].includes(sender.login)) {
core.warning(`exiting early - expected PR by "dependabot[bot]", found "${sender ? sender.login : 'no-sender'}" instead`)
core.warning(`exiting early - expected PR by "dependabot[bot]||renovate[bot]", found "${sender ? sender.login : 'no-sender'}" instead`)
process.exit(0)
}

Expand Down
2 changes: 1 addition & 1 deletion action/test/cli/early-exit.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ tap.test('main -> not dependabot', assert => {

pexec('node index.js')
.then(({ code, stdout }) => {
assert.equal(stdout.trim(), '::warning::exiting early - expected PR by "dependabot[bot]", found "foo" instead')
assert.equal(stdout.trim(), '::warning::exiting early - expected PR by "dependabot[bot]||renovate[bot]", found "foo" instead')
})
})

0 comments on commit 5b65bc7

Please sign in to comment.