-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.cz-config.js
66 lines (62 loc) · 1.74 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
module.exports = {
types: [
{
value: 'feat',
name: 'feat: 新功能',
},
{
value: 'fix',
name: 'fix: 缺陷修复',
},
{
value: 'refactor',
name: 'refactor: 重构',
},
{
value: 'style',
name: 'style: 代码格式优化(不影响代码运行的变动)',
},
{
value: 'chore',
name: 'chore: 工程化(构建过程或辅助工具的变动)',
},
{
value: 'docs',
name: 'docs: 文档相关修改',
},
{
value: 'perf',
name: 'perf: 性能优化(提升性能的代码变动)',
},
{
value: 'test',
name: 'test: 测试(增加测试)',
},
{
value: 'revert',
name: 'revert: 回滚',
},
{
value: 'WIP',
name: 'WIP: 正在进行中的改动',
},
],
scopes: [{ name: 'component' }, { name: 'board-grid' }, { name: 'pure-board-grid' }],
allowTicketNumber: false,
isTicketNumberRequired: false,
ticketNumberPrefix: '#',
ticketNumberRegExp: '\\d{0,9}',
messages: {
type: '选择你要 Commit 的变更类型:',
scope: '选择或自定义你的变更范围【可选】:',
ticketNumber: '输入修改对应的 Issue Id(格式d{0,9})【可选】:',
subject: '填写标题:\n',
body: '填写内容【可选】,用于生成 changLog,选择 feat、fix、refactor 类型后必填此项。(用 "|" 来分行):\n',
breaking: '列出破坏性修改【可选】:\n',
confirmCommit: '确认上面的 Commit 信息?',
},
allowCustomScopes: true,
allowBreakingChanges: ['feat', 'fix'],
skipQuestions: ['footer'],
subjectLimit: 100,
};