Improve the pattern of issue bot
This commit is contained in:
parent
89751c8e9f
commit
6688e27787
1 changed files with 7 additions and 3 deletions
10
.github/workflows/issue-pr-interceptor.yml
vendored
10
.github/workflows/issue-pr-interceptor.yml
vendored
|
@ -1,6 +1,10 @@
|
||||||
name: "Intercept bad issue/PRs"
|
name: "Intercept bad issue/PRs"
|
||||||
|
|
||||||
on: [issues, pull_request]
|
on:
|
||||||
|
issues:
|
||||||
|
types: [opened]
|
||||||
|
pull_request:
|
||||||
|
types: [opened]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
autoclose:
|
autoclose:
|
||||||
|
@ -10,7 +14,7 @@ jobs:
|
||||||
uses: roots/issue-closer@v1.1
|
uses: roots/issue-closer@v1.1
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
issue-pattern: "\\[x\\] I have read"
|
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."
|
issue-close-message: ":wave: Hi @${issue.user.login},\n\nThis issue is being automatically closed because it does not follow the issue template."
|
||||||
pr-pattern: "\\[x\\] Bug|\\[x\\] New feat|\\[x\\] Break|\\[x\\] Doc|@dependabot"
|
pr-pattern: "(\\[x\\]|\\[X\\]) (Bug fix|New feature|Breaking change|Documentation update)|@dependabot"
|
||||||
pr-close-message: ":wave: Hi @${pull_request.user.login},\n\nThis PR is being automatically closed because it does not follow the PR template."
|
pr-close-message: ":wave: Hi @${pull_request.user.login},\n\nThis PR is being automatically closed because it does not follow the PR template."
|
||||||
|
|
Loading…
Reference in a new issue