From 45dbec9492793e6e7c7ba36b0c88d148aed49ba6 Mon Sep 17 00:00:00 2001 From: Howard Wu <40033067+Howard20181@users.noreply.github.com> Date: Sun, 25 Sep 2022 12:46:57 +0800 Subject: [PATCH] Update anti-spam workflows --- .github/workflows/anti_spam.yml | 25 ++++++++++++++++++++++++ .github/workflows/pull_request_check.yml | 25 ------------------------ 2 files changed, 25 insertions(+), 25 deletions(-) create mode 100644 .github/workflows/anti_spam.yml delete mode 100644 .github/workflows/pull_request_check.yml 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