feat(dev): add commit template

This commit is contained in:
zouhang 2020-07-30 10:30:18 +08:00 committed by Herrington Darkholme
parent 1206c6c181
commit 52c04a6315
2 changed files with 15 additions and 0 deletions

2
.github/.git_commit_template.txt vendored Normal file
View File

@ -0,0 +1,2 @@
# [TYPE](SCOPE):DESCRIPTION#[ISSUE]
# example feat(button):add type 'button' for form usage #1234

View File

@ -22,3 +22,16 @@ $ yarn gen component-name
``` ```
Note the `component-name` must be in `kebab-case`, combining words by replacing each space with a dash. Note the `component-name` must be in `kebab-case`, combining words by replacing each space with a dash.
## Commit template
With command
```bash
yarn cz
```
Example
```
[TYPE](SCOPE):DESCRIPTION#[ISSUE]
# example feat(button):add type 'button' for form usage #1234
```