From e8beb4029c6ee45b2cc3c6624674ff4e3f94101a Mon Sep 17 00:00:00 2001 From: DIYgod Date: Mon, 25 Jan 2021 18:03:06 +0800 Subject: [PATCH] chore: fix dependabot ci error --- scripts/workflow/test-route/identify.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/workflow/test-route/identify.js b/scripts/workflow/test-route/identify.js index 1348642f6..2a81f548e 100644 --- a/scripts/workflow/test-route/identify.js +++ b/scripts/workflow/test-route/identify.js @@ -1,6 +1,7 @@ const noFound = 'Auto: Route No Found'; module.exports = async ({ github, context, core }, body, number) => { + core.debug(`sender: ${context.payload.sender.login}`); core.debug(`body: ${body}`); const m = body.match(/```routes\r\n((.|\r\n)*)```/); core.debug(`match: ${m}`); @@ -22,7 +23,7 @@ module.exports = async ({ github, context, core }, body, number) => { res = m[1].trim().split('\r\n'); core.info(`routes detected: ${res}`); - if (res.length > 0 && res[0] === 'NOROUTE') { + if ((res.length > 0 && res[0] === 'NOROUTE') || context.payload.sender.login === 'dependabot-preview') { core.info('PR stated no route, passing'); await removeLabel(); await github.issues