chore: check only bot status

This commit is contained in:
Matyáš Caras 2024-07-30 17:43:18 +02:00
parent 19364e793c
commit bbd8134892
Signed by: hernik
GPG key ID: 2A3175F98820C5C6
2 changed files with 4 additions and 4 deletions

4
dist/index.js vendored
View file

@ -45355,7 +45355,6 @@ try {
if (!action) { if (!action) {
throw new Error("No action was passed"); throw new Error("No action was passed");
} }
console.log(action);
if (!email || !apiKey || !projectId) { if (!email || !apiKey || !projectId) {
throw new Error("You are missing a required parameter. Check the documentation for details."); throw new Error("You are missing a required parameter. Check the documentation for details.");
} }
@ -45403,7 +45402,8 @@ try {
mediaType: { mediaType: {
format: "html" 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) if (comment2.length === 0)
break; break;
console.log(comment2.length); console.log(comment2.length);

View file

@ -64,7 +64,6 @@ try {
if (!action) { if (!action) {
throw new Error("No action was passed"); throw new Error("No action was passed");
} }
console.log(action)
if (!email || !apiKey || !projectId) { if (!email || !apiKey || !projectId) {
throw new Error( throw new Error(
"You are missing a required parameter. Check the documentation for details.", "You are missing a required parameter. Check the documentation for details.",
@ -134,8 +133,9 @@ try {
}, },
}) })
).data.filter( ).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 if (comment.length === 0) break; // not a Freelo task, skip
console.log(comment.length); console.log(comment.length);
console.log(comment[0].body_html); console.log(comment[0].body_html);