Add autocloser

This commit is contained in:
Frank Denis 2023-02-04 22:11:05 +01:00
parent 470460f069
commit f630094e8d
1 changed files with 12 additions and 0 deletions

12
.github/workflows/autocloser.yml vendored Normal file
View File

@ -0,0 +1,12 @@
name: Autocloser
on: [issues]
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: "@${issue.user.login} this issue was automatically closed because it did not follow the issue template. If this is a support request, please use the discussion section instead."
issue-pattern: ".*(do we replicate the issue|Expected behavior|raised as discussion|# Impact).*"