-
Notifications
You must be signed in to change notification settings - Fork 2
/
.cz-config.js
75 lines (73 loc) · 2.16 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
72
73
74
75
module.exports = {
// types,
types: [
{
value: ":sparkles: Feature",
name: "Feature: when adding new features"
},
{
value: ":bug: Fix",
name: "Fix: when fixing bugs"
},
{
value: ":construction: WIP",
name: "WIP: when working in progress"
},
{
value: ":hammer: Refactor",
name: "Refactor: when changing the code without adding features or fixing bugs"
},
{
value: ":package: Chore",
name: "Chore: when changing the build process or auxiliary tools and libraries such as documentation generation"
},
{
value: ":art: Style",
name: "Style: when improving the format/structure of the code"
},
{
value: ":arrow_up: Upgrade",
name: "Upgrade: when upgrading dependencies"
},
{
value: ":zap: Perf",
name: "Perf: when improving performance"
},
{
value: ":pencil: Docs",
name: "Docs: when wrting docs"
},
{
value: ":white_check_mark: Test",
name: "Test: when adding or updating tests"
},
{
value: ":back: Revert",
name: "Revert: when reverting some commits"
},
{
value: ":tada: Release",
name: "Release: when releasing a new version"
},
{
value: ":pushpin: Init",
name: "Init: when initializing a project"
}
],
// override the messages, defaults are as follows
messages: {
type: "Select the type of change that you're committing:",
scope: "\nDenote the SCOPE of this change (optional):",
// used if allowCustomScopes is true
customScope: "Denote the SCOPE of this change:",
subject: "[subject] Write a SHORT, IMPERATIVE tense description of the change:\n",
body:
'[body] Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
breaking: "List any BREAKING CHANGES (optional):\n",
footer:
"[footer] List any ISSUES CLOSED by this change (optional). E.g.: #31, #34:\n",
confirmCommit: "Are you sure you want to proceed with the commit above?"
},
allowCustomScopes: false,
allowBreakingChanges: [":sparkles: Feature", ":bug: Fix"]
};