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:|