From 899609a291d6d25f3e33baf5b6e0b34c567750dd Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Tue, 20 Jul 2021 02:26:03 +0800 Subject: [PATCH] Switch to another issue bot --- .github/workflows/issue-interceptor.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/issue-interceptor.yml b/.github/workflows/issue-interceptor.yml index 4a6b082..39b5095 100644 --- a/.github/workflows/issue-interceptor.yml +++ b/.github/workflows/issue-interceptor.yml @@ -1,16 +1,18 @@ -name: "Intercept bad issues" +name: Intercept bad issues on: issues: - types: [opened] + types: [opened, edited] jobs: - autoclose: + auto_close_issues: runs-on: ubuntu-latest steps: - - name: Auto close issues that did not follow template - uses: roots/issue-closer@v1.1 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - issue-pattern: "(\\[x\\]|\\[X\\]) I have read" - issue-close-message: ":wave: Hi @${issue.user.login},\n\nThis issue is being automatically closed because it does not follow the issue template." + - name: Checkout + uses: actions/checkout@v1 + - name: Auto close issues that did not follow template + uses: lucasbento/auto-close-issues@v1.0.2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + issue-close-message: ":wave: Hi @${issue.user.login},\n\nThis issue is being automatically closed because it does not follow the issue template." + closed-issues-label: "🙁 Not following issue template"