From 8c8e81554bf9226c37e4fd6060983b98a208772a Mon Sep 17 00:00:00 2001 From: "R. DuPlain" Date: Fri, 22 Oct 2021 07:35:34 -0700 Subject: [PATCH] fix: Indicate early exit when not @dependabot. (#61) --- action/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action/index.js b/action/index.js index d504ae37..6791a00f 100644 --- a/action/index.js +++ b/action/index.js @@ -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]'].includes(sender.login)) { - core.warning(`expected PR by "dependabot[bot]", found "${sender ? sender.login : 'no-sender'}" instead`) + core.warning(`exiting early - expected PR by "dependabot[bot]", found "${sender ? sender.login : 'no-sender'}" instead`) process.exit(0) }