From 696c47232844bf7e81e07116b2c73820853cf48b Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Sun, 17 Oct 2021 13:11:54 +0200 Subject: [PATCH] chore: add GH Action that autocloses question issues --- .github/workflows/issues.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/issues.yml diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml new file mode 100644 index 000000000000..5fbd273783ce --- /dev/null +++ b/.github/workflows/issues.yml @@ -0,0 +1,15 @@ +name: 'Close issues' + +on: + issues: + types: [labeled] + +jobs: + questions: + runs-on: ubuntu-latest + steps: + - name: Close Issue + uses: peter-evans/close-issue@v1 + if: "${{ github.event.label.name == ':speech_balloon: Question' }}" + with: + comment: Please note this issue tracker is not a help forum. We recommend using [StackOverflow](https://stackoverflow.com/questions/tagged/jestjs) or our [discord channel](https://discord.gg/j6FKKQQrW9) for questions.