mirror of
https://git.datalinker.icu/deepseek-ai/DeepSeek-V3.git
synced 2026-06-01 18:57:08 +08:00
(feat) added a simple workflows to prevent github issue spam #1004
This commit is contained in:
parent
f1db6e76e0
commit
4c786a9055
2
.github/workflows/issue-handler.yml
vendored
2
.github/workflows/issue-handler.yml
vendored
@ -16,7 +16,7 @@ jobs:
|
|||||||
const issue = context.payload.issue
|
const issue = context.payload.issue
|
||||||
const body = issue.body?.toLowerCase() || ""
|
const body = issue.body?.toLowerCase() || ""
|
||||||
|
|
||||||
const spamKeywords = ["pls fix", "help me", "urgent", "asap", "???", "wtf"]
|
const spamKeywords = ["pls fix", "help me", "urgent", "asap", "???", "wtf"] // add more keywords here if needed in the futrue
|
||||||
const isSpam = spamKeywords.some(k => body.includes(k))
|
const isSpam = spamKeywords.some(k => body.includes(k))
|
||||||
|
|
||||||
if (isSpam) {
|
if (isSpam) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user