From 3d1dec4c0545e84e7d87bf17338e20f505558056 Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 24 May 2020 10:40:30 -0400 Subject: [PATCH] [CI SKIP] Update issue closer action --- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- .github/ISSUE_TEMPLATE/feature_request.md | 2 +- .github/workflows/issue_closer.yml | 31 +++++++++++++++++++---- 3 files changed, 28 insertions(+), 7 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index ee88bb2fa5..0b6b2da060 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,7 +1,7 @@ --- name: "🐞 Bug report" about: Report a bug -title: "[Bug] Write short description here" +title: "[Bug] " labels: "bug" --- diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 823c3901f5..e0b2ca7ead 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,7 +1,7 @@ --- name: "🌟 Feature request" about: Suggest a feature to improve Tachiyomi -title: "[Feature Request] Write short description here" +title: "[Feature Request] " labels: "feature" --- diff --git a/.github/workflows/issue_closer.yml b/.github/workflows/issue_closer.yml index 3978f672e2..cd8cf284e9 100644 --- a/.github/workflows/issue_closer.yml +++ b/.github/workflows/issue_closer.yml @@ -4,10 +4,31 @@ jobs: autoclose: runs-on: ubuntu-latest steps: - - name: Autoclose issue - uses: arkon/issue-closer-action@v1.0 + - name: Autoclose when created in wrong repo + uses: arkon/issue-closer-action@v1.1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - issue-close-message: "@${issue.user.login} this issue was automatically closed because it was not filled in correctly or the acknowledgment section was not removed." - issue-title-pattern: ".*THIS ISSUE IS IN THE WRONG REPO.*" - issue-body-pattern: ".*DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT.*" + 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." \ No newline at end of file