diff --git a/.github/workflows/anti_spam.yml b/.github/workflows/anti_spam.yml new file mode 100644 index 0000000..45b1af8 --- /dev/null +++ b/.github/workflows/anti_spam.yml @@ -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 diff --git a/.github/workflows/pull_request_check.yml b/.github/workflows/pull_request_check.yml deleted file mode 100644 index d90f595..0000000 --- a/.github/workflows/pull_request_check.yml +++ /dev/null @@ -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