-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cz-config.js
69 lines (67 loc) · 1.8 KB
/
.cz-config.js
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
module.exports = {
types: [
{
value: 'feat',
name: 'feat: 新功能',
},
{
value: 'fix',
name: 'fix: 修复Bug',
},
{
value: 'docs',
name: 'docs: 文档变动',
},
{
value: 'style',
name: 'style: 不影响代码含义的变化(空白、格式化、缺少分号等)',
},
{
value: 'refactor',
name: 'refactor: 重构代码,既不修复错误也不添加功能',
},
{
value: 'perf',
name: 'perf: 性能优化',
},
{
value: 'test',
name: 'test: 测试相关',
},
{
value: 'build',
name: 'build: 影响构建系统或外部依赖关系的更改',
},
{
value: 'ci',
name: 'ci: 更改持续集成文件和脚本',
},
{
value: 'chore',
name: 'chore: 重新打包或更新依赖工具等杂活',
},
{
value: 'revert',
name: 'revert: Revert to a commit',
},
{
value: 'wip',
name: 'wip: Work in progress',
},
],
// override the messages, defaults are as follows
messages: {
type: '请选择 Commit 类型:',
scope: '请选择影响范围 (Scope) (可选):',
customScope: '请选择影响范围 (Scope) (可选):',
subject: '请提供一段简要的 Commit 信息:\n',
body: '请提供一段详细的信息来描述此次更改 (可选). 使用 "|" 来另起一行:\n',
breaking: '是否有任何 BREAKING CHANGES (可选):\n',
footer: '是否有任何 ISSUE 可以被此次 Commit 关闭 (可选). E.g.: #31, #34:\n',
confirmCommit: '是否确认提交上述 Commit 信息?',
},
allowCustomScopes: true,
allowBreakingChanges: ['feat', 'fix', 'refactor'],
// limit subject length
subjectLimit: 100,
};