Update anti-spam workflows

This commit is contained in:
Howard Wu 2022-09-25 13:08:30 +08:00
parent 80a30f46d1
commit baeaed55fd
2 changed files with 17 additions and 2 deletions

View File

@ -3,7 +3,6 @@
Also make sure you've tested your code and also done a self-review of it.
DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT.
Please set the label to bugfix or enhancement, otherwise it will be closed.
-->
Checklist

View File

@ -10,7 +10,7 @@ jobs:
autoclose:
runs-on: ubuntu-latest
steps:
- name: Anti-spam
- name: Check issue
uses: dessant/repo-lockdown@v2
with:
exclude-issue-labels: |
@ -25,6 +25,22 @@ jobs:
pr-lock-reason: spam
skip-closed-pr-comment: true
skip-closed-issue-comment: true
process-only: issues
- 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
bugfix
enhancement
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
with: