2021-07-19 21:26:03 +03:00
|
|
|
name: Intercept bad issues
|
2020-11-28 16:43:42 +03:00
|
|
|
|
2021-03-04 16:40:35 +03:00
|
|
|
on:
|
|
|
|
issues:
|
2021-07-19 21:26:03 +03:00
|
|
|
types: [opened, edited]
|
2020-11-28 16:43:42 +03:00
|
|
|
|
|
|
|
jobs:
|
2021-07-19 21:26:03 +03:00
|
|
|
auto_close_issues:
|
2020-11-28 16:43:42 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-07-19 21:26:03 +03:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Auto close issues that did not follow template
|
|
|
|
uses: lucasbento/auto-close-issues@v1.0.2
|
|
|
|
with:
|
|
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
issue-close-message: ":wave: Hi @${issue.user.login},\n\nThis issue is being automatically closed because it does not follow the issue template."
|
|
|
|
closed-issues-label: "🙁 Not following issue template"
|