Update anti-spam workflows

This commit is contained in:
Howard Wu 2022-09-25 12:46:57 +08:00
parent fe0d7c60ce
commit 45dbec9492
2 changed files with 25 additions and 25 deletions

25
.github/workflows/anti_spam.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Anti-spam
on:
issues:
types: [opened]
pull_request_target:
types: [opened, edited]
jobs:
autoclose:
runs-on: ubuntu-latest
steps:
- name: Anti-spam
uses: dessant/repo-lockdown@v2
with:
exclude-issue-labels: |
bug
enhancement
issue-lock-reason: spam
exclude-pr-labels: |
bug
enhancement
do-not-autoclose
pr-labels: spam
pr-lock-reason: spam

View File

@ -1,25 +0,0 @@
name: Pull Request checker
on:
pull_request:
types: [opened, edited]
jobs:
autoclose:
runs-on: ubuntu-latest
steps:
- name: Check Pull Request
uses: tachiyomiorg/issue-moderator-action@v1
with:
auto-close-rules: |
[
{
"type": "body",
"regex": ".*DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT.*",
"message": "The acknowledgment section was not removed."
}
]
auto-close-ignore-label: |
do-not-autoclose
bug
enhancement