2020-11-28 16:43:42 +03:00
|
|
|
name: "Intercept bad issue/PRs"
|
|
|
|
|
2020-11-30 16:56:15 +03:00
|
|
|
on:
|
|
|
|
issues:
|
2020-12-27 19:38:20 +03:00
|
|
|
types: [opened, reopened]
|
2020-11-30 16:56:15 +03:00
|
|
|
pull_request:
|
2020-12-27 19:38:20 +03:00
|
|
|
types: [opened, reopened]
|
2020-11-28 16:43:42 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
autoclose:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-11-30 16:56:15 +03:00
|
|
|
- name: Auto close issues/pr 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 }}
|
|
|
|
issue-pattern: "\\[x\\] I have read"
|
2020-11-30 16:56:15 +03:00
|
|
|
issue-close-message: ":wave: Hi @${issue.user.login},\n\nThis issue is being automatically closed because it does not follow the issue template."
|
2021-01-17 17:23:34 +03:00
|
|
|
pr-pattern: "\\[x\\] Bug|\\[x\\] New feat|\\[x\\] Break|\\[x\\] Doc|@dependabot"
|
2020-11-30 16:56:15 +03:00
|
|
|
pr-close-message: ":wave: Hi @${pull_request.user.login},\n\nThis PR is being automatically closed because it does not follow the PR template."
|