-
Notifications
You must be signed in to change notification settings - Fork 18
/
.cz-config.js
62 lines (59 loc) · 1.54 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
'use strict';
module.exports = {
"types": [
{
"name": "✨ 新特性",
"value": "feat"
},
{
"name": "🐞 bug修复",
"value": "fix"
},
{
"name": "⚡︎ 性能优化",
"value": "perf"
},
{
"name": "♻ 重构代码",
"value": "refactor"
},
{
"name": "🎉 样式相关",
"value": "style"
},
{
"name": "✅ 测试用例",
"value": "test"
},
{
"name": "📦 其他更新",
"value": "chore"
},
{
"name": "📝 文档更新",
"value": "docs"
},
{
"name": "⏪ 回滚",
"value": "revert"
}
],
// scopes: [{ name: 'accounts' }],
// override the messages, defaults are as follows
messages: {
type: '选择一种你的提交类型:',
// scope: '选择影响模块:',
// used if allowCustomScopes is true
// customScope: '更改的范围:',
subject: '简要说明:',
body: '提交内容详细说明,使用"|"换行(可选): ',
breaking: '非兼容性说明 (可选):',
footer: '关联关闭的issue,例如: #31, #34(可选):',
confirmCommit: '确定提交说明?'
},
// allowCustomScopes: true,
allowBreakingChanges: ['feat', 'fix'],
skipQuestions: ['scope'],
// limit subject length
subjectLimit: 100
}