-
-
Notifications
You must be signed in to change notification settings - Fork 7
27 lines (27 loc) · 1.05 KB
/
close-no-template-issue.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
name: Close a new Issue without an issue template
on:
issues:
types: [opened]
jobs:
close-new-issue:
runs-on: ubuntu-24.04
timeout-minutes: 10
permissions:
issues: write
# Pleaes update `if` when you edit, delete, or add labels of issue templates.
if: |
!contains(github.event.issue.labels.*.name, 'bug') &&
!contains(github.event.issue.labels.*.name, 'enhancement') &&
!contains(github.event.issue.labels.*.name, 'no-fit-template') &&
!contains(github.event.issue.labels.*.name, 'question') &&
!contains(github.event.issue.labels.*.name, 'support-request')
steps:
- uses: suzuki-shunsuke/issue-close-lock-action@231aefd9a92cddfd2eb51e60965e9468f3d592bd # v0.1.0
with:
issue_number: ${{github.event.issue.number}}
is_lock: "false"
message: |
This issue is closed because it was created without an issue template probably.
Please use an issue template.
https://github.com/suzuki-shunsuke/github-comment/issues/new/choose