forked from instantcommerce/next-api-decorators
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cz-config.js
75 lines (74 loc) · 2.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
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 = {
// add additional standard scopes here
scopes: [{ name: "accounts" }, { name: "admin" }],
// use this to permanently skip any questions by listing the message key as a string
skipQuestions: [],
/* DEFAULT CONFIG */
messages: {
type: "What type of changes are you committing:",
scope: "\nEnlighten us with the scope (optional):",
customScope: "Add the scope of your liking:",
subject: "Write a short and simple description of the change:\n",
body:
'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
breaking: "List any BREAKING CHANGES (optional):\n",
footer:
"List any ISSUES CLOSED by this change (optional). E.g.: #31, #34:\n",
confirmCommit: "Are you sure you the above looks right?",
},
types: [
{
value: "fix",
name: "🐛 fix: Changes that fix a bug",
emoji: "🐛",
},
{
value: "feat",
name: " 🚀 feat: Changes that introduce a new feature",
emoji: "🚀",
},
{
value: "refactor",
name:
"🔍 refactor: Changes that neither fixes a bug nor adds a feature",
emoji: "🔍",
},
{
value: "test",
name: "💡 test: Adding missing tests",
emoji: "💡",
},
{
value: "style",
name:
"💅 style: Changes that do not impact the code base \n (white-space, formatting, missing semi-colons, etc)",
emoji: "💅",
},
{
value: "docs",
name: "📝 docs: Changes to the docs",
emoji: "📝",
},
{
value: "chore",
name:
"🤖 chore: Changes to the build process or auxiliary tools\n and or libraries such as auto doc generation",
emoji: "🤖",
},
{
value: "ci",
name:
"👾 ci: Changes related to setup and usage of CI",
emoji: "👾",
},
],
allowTicketNumber: false,
isTicketNumberRequired: false,
ticketNumberPrefix: "#",
ticketNumberRegExp: "\\d{1,5}",
allowCustomScopes: true,
allowBreakingChanges: ["feat", "fix", "chore"],
breakingPrefix: "🚧 BREAKING CHANGES 🚧",
footerPrefix: "CLOSES",
subjectLimit: 100,
};