From f4dd150b7094dc08fedb0979c9caf5ef3b9e2561 Mon Sep 17 00:00:00 2001 From: arkon Date: Fri, 12 Feb 2021 16:26:48 -0500 Subject: [PATCH] [SKIP CI] Update to issue-closer-action@v2.0 --- .github/workflows/issue_closer.yml | 55 +++++++++++++++--------------- 1 file changed, 27 insertions(+), 28 deletions(-) diff --git a/.github/workflows/issue_closer.yml b/.github/workflows/issue_closer.yml index 33cc62f397..02e1d09351 100644 --- a/.github/workflows/issue_closer.yml +++ b/.github/workflows/issue_closer.yml @@ -7,31 +7,30 @@ jobs: autoclose: runs-on: ubuntu-latest steps: - - name: Autoclose when created in wrong repo - uses: arkon/issue-closer-action@v1.1 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - type: title - regex: ".*THIS ISSUE IS IN THE WRONG REPO.*" - message: "@${issue.user.login} this issue was automatically closed because it was not opened in the correct repo, as the template mentioned." - - name: Autoclose when no short description provided - uses: arkon/issue-closer-action@v1.1 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - type: title - regex: ".**" - message: "@${issue.user.login} this issue was automatically closed because you did not fill out the description in the title." - - name: Autoclose when body acknowledgement section not removed - uses: arkon/issue-closer-action@v1.1 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - type: body - regex: ".*DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT.*" - message: "@${issue.user.login} this issue was automatically closed because the acknowledgment section was not removed." - - name: Autoclose when body requested information not filled out - uses: arkon/issue-closer-action@v1.1 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - type: body - regex: ".*\\* (Tachiyomi version|Android version|Device): \\?.*" - message: "@${issue.user.login} this issue was automatically closed because the requested information was not filled out." + - name: Autoclose issues + uses: arkon/issue-closer-action@v2.0 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + rules: | + [ + { + "type": "title", + "regex": ".*THIS ISSUE IS IN THE WRONG REPO.*", + "message": "It was not opened in the correct repo, as the template mentioned." + }, + { + "type": "title", + "regex": ".**", + "message": "The description in the title was not filled out." + }, + { + "type": "body", + "regex": ".*DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT.*", + "message": "The acknowledgment section was not removed." + }, + { + "type": "body", + "regex": ".*\\* (Tachiyomi version|Android version|Device): \\?.*", + "message": "Requested information in the template was not filled out." + } + ]