-
Notifications
You must be signed in to change notification settings - Fork 1
/
.cz-config.js
40 lines (39 loc) · 1.23 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
'use strict';
module.exports = {
// 不要更改types, 只允许出现这几种
types: [
{value: 'feat', name: 'feat: 新功能 (feature)'},
{value: 'fix', name: 'fix: 修复bug'},
{value: 'docs', name: 'docs: 文档 (documentation)'},
{value: 'style', name: 'style: 格式 (不影响代码运行的变动)'},
{value: 'refactor', name: 'refactor: 重构 (即不是新增功能,也不是修改bug的代码变动)'},
{value: 'test', name: 'test: 增加测试'},
{value: 'chore', name: 'chore: 构建过程或辅助工具的变动'},
],
// 按照项目模块, 自行配置
scopes: [
{name: 'logger'},
{name: 'dirdiff'},
{name: 'connection'},
{name: 'env'},
{name: 'http_reverse_proxy'},
{name: 'utils'},
{name: 'consul'},
{name: 'exception'},
{name: 'session'},
{name: 'pb'},
],
// 可以根据匹配的类型不同, 显示不一样的scope, 动手实践下!
/*
scopeOverrides: {
fix: [
{name: 'merge'},
{name: 'style'},
{name: 'e2eTest'},
{name: 'unitTest'}
]
},
*/
allowCustomScopes: true,
allowBreakingChanges: ['feat', 'fix']
};