Skip to content

Commit 51b8871

Browse files
committed
[antispam] experimenting (WIP)
1 parent 641bda8 commit 51b8871

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/scripts/antispam.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ class Check {
7676
const result = await this.predicate();
7777
if (typeof result !== "boolean")
7878
console.error("Check: invalid argument: not a predicate");
79+
80+
console.log(">>> DEBUG: ", result, " => ", this.reason)
81+
7982
return result;
8083
}
8184
}
@@ -109,9 +112,6 @@ module.exports = async ({ github, context, core }) => {
109112
WasAuthorRecentlyCreated = true;
110113
// ⚠️
111114

112-
const qwe = () => ! WasAuthorRecentlyCreated;
113-
console.log(">>> DEBUG", WasAuthorRecentlyCreated, !! WasAuthorRecentlyCreated, await qwe());
114-
115115
const isTitleOrBodyTooShort = (() => {
116116

117117
if (context.eventName === 'workflow_dispatch') // issues or pull_request

0 commit comments

Comments
 (0)