chore: fix dependabot ci error
This commit is contained in:
parent
f71b246aee
commit
e8beb4029c
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue