From c9a4ed620c672c58a50b82631a90e75c850a2c62 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Sat, 2 Mar 2024 01:23:30 +0100 Subject: [PATCH] Add "issue_moderator" github workflow (#629) --- .github/workflows/issue_moderator.yml | 48 +++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/issue_moderator.yml diff --git a/.github/workflows/issue_moderator.yml b/.github/workflows/issue_moderator.yml new file mode 100644 index 00000000..0fcf3c5a --- /dev/null +++ b/.github/workflows/issue_moderator.yml @@ -0,0 +1,48 @@ +name: Issue moderator + +on: + issues: + types: [opened, edited, reopened] + issue_comment: + types: [created] + +jobs: + autoclose: + runs-on: ubuntu-latest + steps: + - name: Moderate issues + uses: tachiyomiorg/issue-moderator-action@v1 + with: + repo-token: ${{ github.token }} + duplicate-check-enabled: true + duplicate-check-label: Source request + existing-check-enabled: true + existing-check-label: Source request + auto-close-rules: | + [ + { + "type": "title", + "regex": ".*.*", + "message": "You did not fill out the description in the title" + }, + { + "type": "title", + "regex": ".*(<|>)+.*", + "message": "You did not remove Angle brackets(< and >) from the title" + }, + { + "type": "body", + "regex": ".*DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT.*", + "message": "The acknowledgment section was not removed" + }, + { + "type": "body", + "regex": ".*(Suwayomi-Server version|Server Operating System|Server Desktop Environment|Server JVM version|Client Operating System|Client Web Browser):.*(\\(Example:|