From 7b1a25addef4cce5ebe796facad4fe8d4bed82fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=B9=BF?= Date: Thu, 6 Nov 2025 18:13:26 +0800 Subject: [PATCH] Add issue spam configuration file --- .github/.github/issue-spam-config.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/.github/issue-spam-config.json diff --git a/.github/.github/issue-spam-config.json b/.github/.github/issue-spam-config.json new file mode 100644 index 000000000..ddc026b82 --- /dev/null +++ b/.github/.github/issue-spam-config.json @@ -0,0 +1,26 @@ +{ + "dry_run": false, + "min_account_age_days": 3, + "max_urls_for_spam": 1, + "min_body_len_for_links": 40, + "spam_words": [ + "call now", + "zadzwoń", + "zadzwoń teraz", + "kontakt", + "telefon", + "telefone", + "contato", + "suporte", + "infolinii", + "click here", + "buy now", + "subscribe", + "visit" + ], + "bracket_max": 6, + "special_char_density_threshold": 0.12, + "phone_regex": "\\+?\\d[\\d\\-\\s\\(\\)\\.]{6,}\\d", + "labels_for_spam": ["spam"], + "labels_for_review": ["needs-triage"] +}