From a5d03dae2fa2e7661fc4fd308deedf841c04b8c4 Mon Sep 17 00:00:00 2001 From: BecodReyes <35525491+BecodReyes@users.noreply.github.com> Date: Sat, 27 Feb 2021 18:38:17 +0800 Subject: [PATCH] Create autocloser.yml --- .github/ISSUE_TEMPLATE/config.yml | 2 +- .github/ISSUE_TEMPLATE/feature_request.md | 11 +++++++--- .github/workflows/autocloser.yml | 26 +++++++++++++++++++++++ 3 files changed, 35 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/autocloser.yml diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 5e8d50be..ad657f37 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,5 +1,5 @@ blank_issues_enabled: false contact_links: - name: DOCS - url: https://github.com/fatedier/frp + url: https://github.com/fatedier/frp/blob/master/README.md about: Here you can find out how to configure frp. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index ba717a86..fc843af9 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -9,7 +9,7 @@ assignees: '' -**The solution you want** +**[REQUIRED] The solution you want** **Alternatives considered** @@ -18,5 +18,10 @@ assignees: '' **How to implement this function** -**Application scenarios of this function** - \ No newline at end of file +**[REQUIRED] Application scenarios of this function** + + +**Checklist**: + +- [] I included all information required in the sections above +- [] I made sure there are no duplicates of this report [(Use Search)](https://github.com/fatedier/frp/issues?q=is%3Aissue) \ No newline at end of file diff --git a/.github/workflows/autocloser.yml b/.github/workflows/autocloser.yml new file mode 100644 index 00000000..eff640e8 --- /dev/null +++ b/.github/workflows/autocloser.yml @@ -0,0 +1,26 @@ +name: Autocloser +on: + issues: + types: [opened] +jobs: + autoclose: + runs-on: ubuntu-latest + steps: + - name: Autoclose issues that did not follow issue template + uses: roots/issue-closer@v1.1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-close-message: > + Hello @${{ github.event.issue.user.login }}! :wave: + Thank you very much for reporting it. + + + However, **your report doesn't follow the issue template**, + so it is being automatically closed. We are really sorry for that, + but we need all reports to follow the template, or else it won't be + possible to understand and help with all issues. + + + Please, create a new issue following the template, or reopen this + same issue to edit and provide all required information. + issue-pattern: 'I included all information required in the sections above' \ No newline at end of file