mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2024-11-23 03:39:16 +01:00
Update anti-spam workflows
This commit is contained in:
parent
fe0d7c60ce
commit
45dbec9492
25
.github/workflows/anti_spam.yml
vendored
Normal file
25
.github/workflows/anti_spam.yml
vendored
Normal 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
|
25
.github/workflows/pull_request_check.yml
vendored
25
.github/workflows/pull_request_check.yml
vendored
@ -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
|
Loading…
Reference in New Issue
Block a user