From 4eeabbd9d9c3de8c19dde22184f47d61feddffe4 Mon Sep 17 00:00:00 2001 From: Tony Lock Date: Mon, 7 Feb 2022 17:30:43 +0000 Subject: Create issues.yml --- .github/workflows/issues.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/issues.yml (limited to '.github') diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml new file mode 100644 index 00000000..c02b9e26 --- /dev/null +++ b/.github/workflows/issues.yml @@ -0,0 +1,24 @@ +name: Auto-close blank templates +on: + issues: + types: [opened] +jobs: + add-comment: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - name: Check user permission + id: check + uses: scherermichael-oss/action-has-permission@master + with: + required-permission: write + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - if: steps.check.outputs.has-permission == false && contains(github.event.issue.labels.*.name, 'bug') == false && contains(github.event.issue.labels.*.name, 'enhancement') == false + name: Close Issue + uses: peter-evans/close-issue@v1 + with: + comment: | + This issue has been automatically closed because it does not originate from a Duet3D administrator. + Please create a discussion on https://forum.duet3d.com first and fill out the corresponding GitHub template if the bug or feature request is acknowledged. -- cgit v1.2.3