web/.github/workflows/issue-interceptor.yml

17 lines
486 B
YAML
Raw Normal View History

name: "Intercept bad issues"
2020-11-28 16:43:42 +03:00
2021-03-04 16:40:35 +03:00
on:
issues:
types: [opened]
2020-11-28 16:43:42 +03:00
jobs:
autoclose:
runs-on: ubuntu-latest
steps:
- name: Auto close issues that did not follow template
2020-11-28 16:43:42 +03:00
uses: roots/issue-closer@v1.1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
2021-03-04 16:40:35 +03:00
issue-pattern: "(\\[x\\]|\\[X\\]) I have read"
issue-close-message: ":wave: Hi @${issue.user.login},\n\nThis issue is being automatically closed because it does not follow the issue template."