-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path.cz-config.js
61 lines (54 loc) · 1.69 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
'use strict';
module.exports = {
types: [
{value: ':sparkles:', name: '特性: 一个新的特性'},
{value: ':bug:', name: '修复: 修复一个Bug'},
{value: ':books:', name: '文档: 变更的只有文档'},
{value: ':racehorse:', name: '性能: 提升性能'},
{value: ':rotating_light:', name: '测试: 添加一个测试'},
{value: ':hammer:', name: '回滚: 代码回退'},
{value: ':tada:', name: '回滚: 代码回退'}
],
scopes: [
{name: 'app'},
{name: 'Demo'},
{name: 'Frame'},
{name: 'KeepassApi'},
{name: 'IBaseApi'},
{name: 'HWImp'},
{name: 'PlayImp'}
],
allowTicketNumber: false,
isTicketNumberRequired: false,
ticketNumberPrefix: 'TICKET-',
ticketNumberRegExp: '\\d{1,5}',
// it needs to match the value for field type. Eg.: 'fix'
/*
scopeOverrides: {
fix: [
{name: 'merge'},
{name: 'style'},
{name: 'e2eTest'},
{name: 'unitTest'}
]
},
*/
// override the messages, defaults are as follows
messages: {
type: '选择一种你的提交类型:',
scope: '选择一个scope (可选):',
// used if allowCustomScopes is true
customScope: 'Denote the SCOPE of this change:',
subject: '短说明:\n',
body: '长说明,使用"|"换行(可选):\n',
breaking: '非兼容性说明 (可选):\n',
footer: '关联关闭的issue,例如:#31, #34(可选):\n',
confirmCommit:'确定提交说明?'
},
allowCustomScopes: true,
allowBreakingChanges: ['特性', '修复'],
// skip any questions you want
skipQuestions: ['body'],
// limit subject length
subjectLimit: 100
};