Skip to content

Commit f2efae8

Browse files
committed
Improve the issue/pr interceptor
1 parent 8b2e6d1 commit f2efae8

File tree

3 files changed

+16
-42
lines changed

3 files changed

+16
-42
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: "Intercept bad issue/PRs"
2+
3+
on: [issues, pull_request]
4+
5+
jobs:
6+
autoclose:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Autoclose issues that did not follow issue template
10+
uses: roots/[email protected]
11+
with:
12+
repo-token: ${{ secrets.GITHUB_TOKEN }}
13+
issue-pattern: "\\[x\\] I have read"
14+
issue-close-message: "Hi @${issue.user.login} :wave:,\n\nThis issue is being automatically closed because it does not follow the issue template."
15+
pr-pattern: "\\[x\\] Bug|\\[x\\] New feat|\\[x\\] Break|\\[x\\] Doc"
16+
pr-close-message: "Hi @${pull_request.user.login} :wave:,\n\nThis PR is being automatically closed because it does not follow the PR template."

.github/workflows/issues-cleaner.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/issues-filter.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)