-
Notifications
You must be signed in to change notification settings - Fork 1.2k
28 lines (24 loc) · 1.15 KB
/
issue-title-check.yml
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
28
name: Issue Title Standard Check
on:
issues:
types: [opened, edited]
jobs:
check-issue:
runs-on: ubuntu-latest
steps:
- uses: actions-cool/[email protected]
id: check
name: Check Issue Title
with:
actions: 'check-issue'
issue-number: ${{ github.event.issue.number }}
title-excludes: '[Bug],[Feature],[Doc],[Refactor],[Optimization],[Improvement]'
- if: steps.check.outputs.check-result == 'false' && github.event.issue.state == 'open'
uses: actions-cool/[email protected]
name: Create Comment
with:
actions: 'create-comment'
issue-number: ${{ github.event.issue.number }}
body: |
Hi @${{ github.event.issue.user.login }}, It is detected that the current Issue title is not standardized. Please refer to [Issue Notes](http://www.dinky.org.cn/docs/next/developer_guide/contribution/issue) to modify it.
你好 @${{ github.event.issue.user.login }}, 检测到当前 Issue 标题不规范, 请参考 [Issue 须知](http://www.dinky.org.cn/docs/next/developer_guide/contribution/issue) 进行修改