Skip to content

Commit

Permalink
Update anti-spam workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard20181 committed Sep 25, 2022
1 parent 80a30f4 commit baeaed5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 17 additions & 1 deletion .github/workflows/anti_spam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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:
Expand Down

0 comments on commit baeaed5

Please sign in to comment.