Skip to content

Commit 90833f3

Browse files
Update auto-close.yml
1 parent 18df0c4 commit 90833f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/auto-close.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name: Autocloser
22
on: [issues]
33
jobs:
44
autoclose:
5+
if: ${{ github.event.label.name == 'bug' }}
56
runs-on: ubuntu-latest
67
steps:
78
- name: Autoclose issues that did not follow issue template
89
uses: roots/[email protected]
910
with:
1011
repo-token: ${{ secrets.GITHUB_TOKEN }}
11-
label: "bug"
1212
issue-close-message: "@${issue.user.login} this issue was automatically closed because it did not follow the issue template"
1313
issue-pattern: "Describe the bug(.|[\\r\\n])*To Reproduce(.|[\\r\\n])*Expected behavior(.|[\\r\\n])*Smartphone(.|[\\r\\n])"

0 commit comments

Comments
 (0)