diff options
Diffstat (limited to '.github/workflows/issues.yml')
-rw-r--r-- | .github/workflows/issues.yml | 24 |
1 files changed, 24 insertions, 0 deletions
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. |