mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-04 19:16:52 +08:00
chore: fix dependabot ci error
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user