Skip to content

Commit fbe9864

Browse files
committed
[antispam] experimenting (WIP)
1 parent 8fcaf14 commit fbe9864

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/scripts/antispam.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ module.exports = async ({ github, context, core }) => {
155155
// compute a confidence score to check against a threshold => if below, then reject
156156

157157

158-
async function filterChecks(checks) {
158+
async function processFailedChecks(checks) {
159159
const results = await Promise.all(
160160
checks.map(async (check) => ({
161161
check,
@@ -166,7 +166,7 @@ module.exports = async ({ github, context, core }) => {
166166
}
167167
// const failed_checks = checks.filter(check => ! check.pass());
168168

169-
filterChecks(checks).then(filteredChecks => {
169+
processFailedChecks(checks).then(failed_checks => {
170170
const threshold = 0;
171171
if (failed_checks.length <= threshold) {
172172
console.info("Not suspicious");

0 commit comments

Comments
 (0)