forked from panyushan-jade/react-template-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cz-config.js
39 lines (39 loc) · 1.58 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
module.exports = {
types: [
{ value: "feat", name: "✨ feat: 一个新的特性" },
{ value: "fix", name: "🐛 fix: 修复一个Bug" },
{ value: "docs", name: "📚 docs: 变更的只有文档" },
{ value: "style", name: "💎 style: 代码风格,格式修复" },
{ value: "config", name: "㊙️ config: 配置文件的变动" },
{
value: "refactor",
name: "📦 refactor: 代码重构,注意和feat、fix区分开",
},
{ value: "perf", name: "🚀 perf: 代码优化,改善性能" },
{ value: "test", name: "🚨 test: 测试" },
{ alue: "chore", name: "🍉 chore: 变更构建流程或辅助工具" },
{ value: "revert", name: "🌄 revert: 代码回退" },
{ value: "init", name: "🔰 init: 项目初始化" },
{ value: "build", name: "⭐ build: 变更项目构建或外部依赖" },
{ value: "WIP", name: "🚶 WIP: 进行中的工作" },
],
scopes: [],
allowTicketNumber: false,
isTicketNumberRequired: false,
ticketNumberPrefix: "TICKET-",
ticketNumberRegExp: "\\d{1,5}",
messages: {
type: "选择一种你的提交类型:",
scope: "选择一个scope (可选):",
customScope: "Denote the SCOPE of this change:",
subject: "简短说明(最多40个字):",
body: '长说明,使用"|"换行(可选):\n',
breaking: "非兼容性说明 (可选):\n",
footer: "关联关闭的issue,例如:#12, #34(可选):\n",
confirmCommit: "确定提交?",
},
allowCustomScopes: true,
allowBreakingChanges: ["feat", "fix"],
skipQuestions: ["scope", "body", "breaking"],
subjectLimit: 100,
};