-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cz-config.js
59 lines (55 loc) · 2.09 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
module.exports = {
types: [
{ value: ":sparkles: feat", name: "✨ feat: 新的特性" },
{ value: ":bug: fix", name: "🐛 fix: 修复bug" },
{ value: ":pencil: docs", name: "📝 docs: 只更改文档" },
{
value: ":lipstick: ui",
name: "💄 ui: 主题样式修改",
},
{
value: "style",
name: "style: 更改代码风格, 不涉及功能的更改 (空格, 格式化代码, 等等)",
},
{
value: ":recycle: refactor",
name: "♻️ refactor: 非修复bug和增加新特性的代码重构",
},
{
value: ":zap: perf",
name: "⚡️ perf: 提升性能的修改",
},
{ value: ":white_check_mark: test", name: "✅ test: 测试" },
{
value: ":wrench: chore",
name: "🔧 chore: 构建流程和辅助工具更改, 比如依赖库",
},
{
value: ":construction_worker: ci",
name: "👷 ci: 持续集成工具",
},
{ value: ":rewind: revert", name: "⏪ revert: 回滚代码" },
{ value: ":construction: WIP", name: "🚧 WIP: 工作流" },
],
allowTicketNumber: false,
isTicketNumberRequired: false,
ticketNumberPrefix: "TICKET-",
ticketNumberRegExp: "\\d{1,5}",
// override the messages, defaults are as follows
messages: {
type: "选择你要commit的类型:\n",
subject: "输入简短精炼的更改描述\n",
body: '对于更改的详细描述 (可选). 使用 "|" 换行:\n',
breaking: "列出 BREAKING CHANGES (可选):\n",
footer: "列举更改关闭的ISSUES (可选). E.g.: #31, #34:\n",
confirmCommit: "你确认上述的commit吗?",
},
allowCustomScopes: true,
allowBreakingChanges: ["feat", "fix"],
skipQuestions: ["scope"],
// limit subject length
subjectLimit: 100,
breaklineChar: "|", // It is supported for fields body and footer.
footerPrefix: "关闭的ISSUES:",
// askForBreakingChangeFirst : true, // default is false
}