Skip to content

Commit f0468e2

Browse files
committed
[antispam] experimenting (WIP)
1 parent dcffd58 commit f0468e2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/scripts/antispam.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ module.exports = async ({ github, context, core }) => {
9797
});
9898
return events.length === 0;
9999
})();
100-
let WasAuthorRecentlyCreated = (() => {
100+
const WasAuthorRecentlyCreated = (() => {
101101

102102
const time_point = (() => {
103103
let value = new Date();
@@ -108,10 +108,6 @@ module.exports = async ({ github, context, core }) => {
108108
return create_at >= time_point;
109109
})();
110110

111-
// ⚠️ simulate a newly-created fake account
112-
WasAuthorRecentlyCreated = true;
113-
// ⚠️
114-
115111
const isTitleOrBodyTooShort = (() => {
116112

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

0 commit comments

Comments
 (0)