From fcd3d5c7af548d8d7e6ea7513cd365ada175689e Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Mon, 6 Sep 2021 23:41:16 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=E2=80=8D=E2=99=82=EF=B8=8F=20Adds?= =?UTF-8?q?=20action=20to=20close=20incomplete=20issues?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/close-incomplete-issues.yml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/close-incomplete-issues.yml diff --git a/.github/workflows/close-incomplete-issues.yml b/.github/workflows/close-incomplete-issues.yml new file mode 100644 index 00000000..48357709 --- /dev/null +++ b/.github/workflows/close-incomplete-issues.yml @@ -0,0 +1,20 @@ +# Close any issue that does not match any of the issue templates +on: + issues: + types: [opened, edited] +jobs: + auto_close_issues: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v1 + - name: Automatically close issues that don't follow the issue template + uses: lucasbento/auto-close-issues@v1.0.2 + with: + github-token: ${{ secrets.BOT_GITHUB_TOKEN }} + closed-issues-label: '🙁 Auto-Closed' + issue-close-message: | + Hello @${issue.user.login} 👋 + Unfortunately your issue does not follow the format outlined in the template, and has therefore been auto-closed. + To ensure that all relevant info is included, please either update or recreate your issue, and complete the sub-headings provided. + Thank you :)