-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cz-config.js
33 lines (33 loc) · 1.62 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
module.exports = {
types: [
{ value: "feat", name: "✨feat: 增加新功能" },
{ value: "fix", name: "🐛fix: 修复bug" },
{ value: "docs", name: "📝docs: 修改文档" },
{ value: "perf", name: "🚀perf: 性能优化" },
{ value: "init", name: "🎉init: 初始提交" },
{ value: "add", name: "➕add: 添加依赖" },
{ value: "build", name: "🔨build: 打包" },
{ value: "chore", name: "🔧chore: 更改配置文件" },
{ value: "ci", name: "👷ci: CI部署" },
{ value: "del", name: "🔥del: 删除代码/文件" },
{ value: "refactor", name: "♻️refactor: 代码重构" },
{ value: "revert", name: "⏪revert: 版本回退" },
{ value: "style", name: "🎨style: 样式修改不影响逻辑" },
{ value: "test", name: "✅test: 增删测试" },
{ value: "ui", name: "💄ui UI调整" },
],
scopes: [],
messages: {
type: "选择更改类型:\n",
scope: "影响的范围, 比如: route, component, utils, build...:\n",
// 如果allowcustomscopes为true,则使用
customScope: '更改的范围:\n',
subject: "简短描述:\n",
body: '详细描述. 使用"|"换行:\n',
breaking: "Breaking Changes列表:\n",
footer: "关闭的issues列表. E.g.: #31, #34:\n",
confirmCommit: "确认提交?",
},
allowCustomScopes: true,
allowBreakingChanges: ["feat", "fix"],
};