-
Notifications
You must be signed in to change notification settings - Fork 64
/
.cz-config.js
71 lines (65 loc) · 2.3 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
70
71
// Copyright (c) 2021 Terminus, Inc.
//
// This program is free software: you can use, redistribute, and/or modify
// it under the terms of the GNU Affero General Public License, version 3
// or later ("AGPL"), as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
module.exports = {
types: [
{ value: 'feat', name: 'feat: 新功能' },
{ value: 'fix', name: 'fix: 缺陷修复' },
{ value: 'refactor', name: 'refactor: 重构' },
{ value: 'style', name: 'style: 代码格式优化(不影响代码运行的变动)' },
{ value: 'chore', name: 'chore: 工程化(构建过程或辅助工具的变动)' },
{ value: 'perf', name: 'perf: 性能优化(提升性能的代码变动)' },
{ value: 'docs', name: 'docs: 文档相关修改' },
{ value: 'test', name: 'test: 测试(增加测试)' },
{ value: 'revert', name: 'revert: 回滚' },
{ value: 'WIP', name: 'WIP: 正在进行中的改动' },
],
scopes: [
{ name: 'common' },
{ name: 'dop' },
{ name: 'msp' },
{ name: 'cmp' },
{ name: 'ecp' },
{ name: 'admin' },
{ name: 'market' },
{ name: 'scheduler' },
{ name: 'components' },
{ name: 'cli' },
],
allowTicketNumber: false,
isTicketNumberRequired: false,
ticketNumberPrefix: '#',
ticketNumberRegExp: '\\d{0,9}',
/*
scopeOverrides: {
fix: [
{name: 'merge'},
{name: 'style'},
{name: 'e2eTest'},
{name: 'unitTest'}
]
},
*/
messages: {
type: '选择你要 Commit 的变更类型:',
scope: '选择或自定义你的变更范围【可选】:',
customScope: '输入变更范围:',
subject: '填写标题:\n',
body: '填写内容,用 "|" 来分行【可选】:\n',
breaking: '列出不兼容的变更【可选】:\n',
confirmCommit: '确认上面的 Commit 信息?',
},
allowCustomScopes: true,
allowBreakingChanges: ['feat', 'fix'],
skipQuestions: ['breaking'],
subjectLimit: 100,
};