Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Perfect readme #11

Merged
merged 4 commits into from
May 31, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ The commit message should consists of four parts:
- Update
- Refactor
- Move
- New
- Perf
- Doc
- Add
- Patch
- Fix
Expand Down
3 changes: 2 additions & 1 deletion doc/README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ git 的`commit-message`由以下四部分组成:
| Update | 对原有功能的修改 |
| Refactor | 代码重构 |
| Move | 移动文件位置 |
| New | 规模较大的新增 |
| Perf | 优化相关,比如提升性能、体验 |
| Doc | 修改了文档,比如 README |
| Add | 规模较小的新增 |
| Patch | 对公共方法的完善或者优化 |
| Fix | 修复 bug |
Expand Down
3 changes: 2 additions & 1 deletion packages/commitlint-config-wizardoc/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ export enum CommitType {
UPDATE = "Update",
REFACTOR = "Refactor",
MOVE = "Move",
NEW = "New",
ADD = "Add",
PATCH = "Patch",
FIX = "Fix",
TEST = "Test",
STUB = "Stub",
CHORE = "Chore",
PERF = "Perf",
DOC = "Doc",
}

export const CONVERSION_MATCH_REGEX = /^(.?)\[(\w+?)(?:\:\:(\w*))?\]\s(.*)$/;