mirror of
https://github.com/hernikplays/freelo-action.git
synced 2024-11-10 02:38:06 +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) {
|
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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue