-
Notifications
You must be signed in to change notification settings - Fork 3
/
.commitlintrc.json
126 lines (126 loc) · 3.91 KB
/
.commitlintrc.json
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
"prompt": {
"questions": {
"body": {
"description": "Provide a longer description of the change\n"
},
"breaking": {
"description": "Describe the breaking changes\n"
},
"breakingBody": {
"description": "A BREAKING CHANGE commit requires a body.\nPlease enter a longer description of the commit itself.\n"
},
"isBreaking": {
"description": "Are there any breaking changes?\n"
},
"isIssueAffected": {
"description": "Does this change affect any open issues?\n"
},
"issues": {
"description": "Add issue references (e.g. \\\"fix #123\\\", \\\"re #123\\\".)\n"
},
"issuesBody": {
"description": "If issues are closed, the commit requires a body.\nPlease enter a longer description of the commit itself.\n"
},
"scope": {
"description": "What is the scope of this change (e.g. component or file name?\n"
},
"subject": {
"description": "Write a short, imperative tense description of the change\n"
},
"type": {
"description": "Select the type of change that you're committing\n",
"enum": {
"builds": {
"description": "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)\n",
"emoji": "",
"title": "Builds"
},
"chore": {
"description": "Other changes that don't modify src or test files\n",
"emoji": "屢",
"title": "Chores"
},
"ci": {
"description": "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)\n",
"emoji": "⚙️",
"title": "Continuous Integrations"
},
"docs": {
"description": "Documentation-only changes\n",
"emoji": "�",
"title": "Documentation"
},
"feat": {
"description": "A new feature\n",
"emoji": "",
"title": "Features"
},
"fix": {
"description": "A bug fix\n",
"emoji": "�",
"title": "Bug Fixes"
},
"format": {
"description": "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)\n",
"emoji": "�",
"title": "Formatting"
},
"perf": {
"description": "A code change that improves performance\n",
"emoji": "�",
"title": "Performance Improvements"
},
"refactor": {
"description": "A code change that neither fixes a bug nor adds a feature\n",
"emoji": "�",
"title": "Code Refactoring"
},
"revert": {
"description": "Reverts a previous commit\n",
"emoji": "�",
"title": "Reverts"
},
"tests": {
"description": "Adding missing tests or correcting existing tests\n",
"emoji": "�",
"title": "Tests"
}
}
}
}
},
"rules": {
"body-leading-blank": [1, "always"],
"body-max-line-length": [2, "always", 80],
"footer-leading-blank": [1, "always"],
"footer-max-line-length": [2, "always", 80],
"header-max-length": [2, "always", 80],
"subject-case": [
2,
"never",
["sentence-case", "start-case", "pascal-case", "upper-case"]
],
"subject-empty": [2, "never"],
"subject-full-stop": [2, "never", "."],
"type-case": [2, "always", "lower-case"],
"type-empty": [2, "never"],
"type-enum": [
2,
"always",
[
"builds",
"chore",
"ci",
"docs",
"feat",
"fix",
"format",
"perf",
"refactor",
"revert",
"tests"
]
]
}
}