From 2f7df73a3783d0333f8833b4e9e62a3bdde0facc Mon Sep 17 00:00:00 2001 From: Aria Moradi Date: Mon, 8 Mar 2021 13:22:44 +0330 Subject: [PATCH] add issue closer --- .github/workflows/issue_closer.yml | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/issue_closer.yml diff --git a/.github/workflows/issue_closer.yml b/.github/workflows/issue_closer.yml new file mode 100644 index 0000000..ae1bc95 --- /dev/null +++ b/.github/workflows/issue_closer.yml @@ -0,0 +1,32 @@ +name: Issue closer + +on: + issues: + types: [opened, edited, reopened] + +jobs: + autoclose: + runs-on: ubuntu-latest + steps: + - name: Autoclose issues + uses: arkon/issue-closer-action@v3.0 + with: + repo-token: ${{ github.token }} + rules: | + [ + { + "type": "title", + "regex": ".**", + "message": "You did not fill out the description in 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": ".*\\* (Tachidesk version|Server Operating System|Server JVM version|Client Operating System|Client Web Browser): .*\\(Example:", + "message": "The requested information was not filled out" + } + ]