mirror of
https://github.com/hernikplays/freelo-action.git
synced 2024-11-25 00:51:05 +01:00
chore: check only bot status
This commit is contained in:
parent
19364e793c
commit
bbd8134892
2 changed files with 4 additions and 4 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue