From bbd8134892a3e0ffffcc09c0a452acdf03ae7f09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maty=C3=A1=C5=A1=20Caras?= Date: Tue, 30 Jul 2024 17:43:18 +0200 Subject: [PATCH] chore: check only bot status --- dist/index.js | 4 ++-- src/index.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index b34be01..9c53b8a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -45355,7 +45355,6 @@ try { if (!action) { throw new Error("No action was passed"); } - console.log(action); if (!email || !apiKey || !projectId) { throw new Error("You are missing a required parameter. Check the documentation for details."); } @@ -45403,7 +45402,8 @@ try { mediaType: { format: "html" } - })).data.filter((i) => i.user?.login === "github-actions" && i.user.type === "Bot"); + })).data.filter((i) => i.user?.type === "Bot"); + console.log(comment2[0].user?.name); if (comment2.length === 0) break; console.log(comment2.length); diff --git a/src/index.ts b/src/index.ts index f4b57d5..9651e53 100644 --- a/src/index.ts +++ b/src/index.ts @@ -64,7 +64,6 @@ try { if (!action) { throw new Error("No action was passed"); } - console.log(action) if (!email || !apiKey || !projectId) { throw new Error( "You are missing a required parameter. Check the documentation for details.", @@ -134,8 +133,9 @@ try { }, }) ).data.filter( - (i) => i.user?.login === "github-actions" && i.user.type === "Bot", + (i) => i.user?.type === "Bot", ); + console.log(comment[0].user?.name) if (comment.length === 0) break; // not a Freelo task, skip console.log(comment.length); console.log(comment[0].body_html);