Skip to content

Commit 5ed9f0b

Browse files
committed
[antispam] experimenting (WIP)
1 parent 16a8b5e commit 5ed9f0b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/scripts/antispam.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ async function when_suspicious({ github, context, failed_checks }){
1212
// labels: ["suspicious"]
1313
// });
1414

15-
const reasons = failed_checks.map(check => `- ${check.reason}`).join("\n");
16-
const commentBody = `This issue/PR has been automatically flagged as [suspicious] as it might not meet contribution requirements.
17-
Please read our contribution guide before submitting.
18-
19-
Reason(s):
20-
15+
const reasons = failed_checks.map(check => `- ${check.reason}`).join("\n> ");
16+
const commentBody = `> [!WARNING] This issue/PR has been automatically flagged as [suspicious] as it might not meet contribution requirements.
17+
> Please read our contribution guide before submitting.
18+
>
19+
> Reason(s):
20+
>
2121
${reasons}
22-
`;
23-
24-
console.log(">>> DEBUG:\n", commentBody);
22+
`;
23+
24+
console.log("Body of the produced comment:\n", commentBody);
2525
// await github.rest.issues.createComment({
2626
// owner,
2727
// repo,

0 commit comments

Comments
 (0)