Skip to content

Commit 8312086

Browse files
committed
[antispam] experimenting (WIP)
1 parent 4967629 commit 8312086

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/scripts/antispam.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class Check {
7777
if (typeof result !== "boolean")
7878
console.error("Check: invalid argument: not a predicate");
7979

80-
console.debug("- check: ", result, " => ", this.reason)
80+
console.debug("- check: ", (result ? "PASSED" : "FAILED"), " => ", this.reason)
8181

8282
return result;
8383
}
@@ -173,8 +173,9 @@ module.exports = async ({ github, context, core }) => {
173173

174174
when_suspicious({ github, context, failed_checks});
175175

176-
const user_information_as_comment = make_information_report({ user: user });
177-
// do stuffs with user_information_as_comment
178-
console.log("user_information_as_comment", user_information_as_comment);
176+
const user_information_as_comment = make_information_report({ user: user }).then(() => {
177+
// do stuffs with user_information_as_comment
178+
console.log("user_information_as_comment", user_information_as_comment);
179+
});
179180
});
180181
};

0 commit comments

Comments
 (0)