未验证 提交 75542870 编写于 作者: H hustjieke 提交者: GitHub

feat(workflow): add pr title check in mergify (#207) (#210)

上级 d0896c37
......@@ -23,7 +23,42 @@ pull_request_rules:
queue:
name: shared_queue
method: squash
# Check if PR title contain valid types
- name: Comment PR if title not semantic
conditions:
- author!=Mergify
- 'title!=^(feat|fix|docs|workflow|style|refactor|test|website|chore)(\(.*\))?:'
actions:
comment:
message: |
This pull request's title is not fulfill the requirements. @{{author}} please update it :point_down:.
Valid format:
```
fix(vc): fix sth..... (#3306)
^ ^---------^ ^----^
| | |
| + +-> you issue id.
| |
| +-> Summary in present tense.
|
+-------> Type: feat, fix, docs, workflow, style, refactor, test, website, chore
```
Valid types:
- `feat`: new feature for stonedb
- `fix`: bug fix for stonedb
- `docs`: changes to the documentation
- `workflow`: ci/cd in .github
- `refactor`: refactoring production code, eg. renaming a variable
- `style`: formatting, missing semi colons, etc; no production code change
- `test`: adding missing tests, refactoring tests; no production code change
- `website`
- `chore`: updating grunt tasks etc; no production code change
# if there is a conflict in a approved PR, ping the author.
- name: ping author if there is conflicts
conditions:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册