From 8eb5384ad9cc34952d226503567c8b9d1c461bf4 Mon Sep 17 00:00:00 2001 From: ergo720 <45463469+ergo720@users.noreply.github.com> Date: Fri, 26 Jun 2020 22:27:37 +0200 Subject: [PATCH 1/2] Add GH action to automatically close issues not following the template --- .github/ISSUE_TEMPLATE/issue-template.md | 39 +++++++++++++++++++++--- .github/workflows/autoclose.yml | 16 ++++++++++ 2 files changed, 50 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/autoclose.yml diff --git a/.github/ISSUE_TEMPLATE/issue-template.md b/.github/ISSUE_TEMPLATE/issue-template.md index 7eb3f7443..fcb164e1b 100644 --- a/.github/ISSUE_TEMPLATE/issue-template.md +++ b/.github/ISSUE_TEMPLATE/issue-template.md @@ -4,11 +4,40 @@ about: Issue template. title: '' labels: '' assignees: '' - --- - + + + +## Quick summary + + + +## Details + + + +### System Configuration: + +* OS +* CPU +* GPU +* etc. + +### Additional Information (if any): + \ No newline at end of file diff --git a/.github/workflows/autoclose.yml b/.github/workflows/autoclose.yml new file mode 100644 index 000000000..2dd1ce916 --- /dev/null +++ b/.github/workflows/autoclose.yml @@ -0,0 +1,16 @@ +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: ergo720/auto-close-issues@v1.0.4 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + issue-close-message: "@${issue.user.login}: your issue has been automatically closed because it does not follow the issue template." # optional property + closed-issues-label: "invalid" # optional property From 250b2f515733527150b6e4a07d1d150a35640b91 Mon Sep 17 00:00:00 2001 From: ergo720 <45463469+ergo720@users.noreply.github.com> Date: Mon, 29 Jun 2020 22:57:48 +0200 Subject: [PATCH 2/2] Removed edited as action triggering event --- .github/workflows/autoclose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/autoclose.yml b/.github/workflows/autoclose.yml index 2dd1ce916..e93ce695c 100644 --- a/.github/workflows/autoclose.yml +++ b/.github/workflows/autoclose.yml @@ -1,6 +1,6 @@ on: issues: - types: [opened, edited] + types: [opened] jobs: auto_close_issues: