-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cz.json
201 lines (201 loc) · 6.8 KB
/
.cz.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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
{
"commitizen": {
"name": "cz_customize",
"version": "4.1.2",
"gpg_sign": true,
"use_shortcuts": true,
"tag_format": "$major.$minor.$patch$prerelease",
"version_type": "semver",
"bump_message": "release $current_version \u2192 $new_version",
"customize": {
"info": "This is customized info",
"message_template": "{{change_type}}({{scope}}): {{subject}}{% if body %}\n\n{{body}}{% endif %}{% if footer %}\n\n{% if is_breaking_change %}BREAKING CHANGE: {% endif %}Closes: {{footer}}{% endif %}",
"example": "feature(front): adds the header component",
"schema": "<type>(<scope>): <subject>\n \n<body>\n \n(BREAKING CHANGE: )<footer>",
"schema_pattern": "^(wip|build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\\([\\w\\-\\.]+\\))?(!)?: ([\\w \\-'])+([\\s\\S]*)",
"commit_parser": "^((?P<change_type>chore|build|ci|docs|feat|fix|perf|refactor|revert|style|test|BREAKING CHANGE)(?:\\((?P<scope>[^()\r\n]*)\\)|\\()?(?P<breaking>!)?|\\w+!):\\s(?P<message>.*)?",
"changelog_pattern": "^(BREAKING CHANGE|chore|build|ci|docs|feat|fix|perf|refactor|revert|style|test)",
"bump_pattern": "^(BREAKING CHANGE|chore|docs|feat|fix|perf|refactor|revert|style|test)",
"bump_map": {
".+!": "MAJOR",
"BREAKING CHANGE": "MAJOR",
"feat": "MINOR",
"fix": "PATCH",
"chore": "PATCH",
"docs": "PATCH",
"perf": "PATCH",
"refactor": "PATCH",
"revert": "MINOR",
"style": "PATCH",
"test": "PATCH"
},
"change_type_order": [
"Breaking Changes",
"Features",
"Bug Fixes",
"Build",
"Styling",
"Performance",
"Refactor",
"Reverted",
"Maintenance",
"Documentation",
"CI/CD"
],
"change_type_map": {
"BREAKING CHANGE": "Breaking Changes",
"chore": "Maintenance",
"build": "Build",
"ci": "CI/CD",
"docs": "Documentation",
"feat": "Features",
"fix": "Bug Fixes",
"perf": "Performance",
"refactor": "Refactor",
"revert": "Reverted",
"style": "Styling",
"test": "Maintenance"
},
"questions": [
{
"type": "list",
"name": "change_type",
"message": "Select the type of change you are committing",
"choices": [
{
"value": "wip",
"name": "wip: Work in progress.",
"key": "w"
},
{
"value": "fix",
"name": "fix: A bug fix. Correlates with PATCH in SemVer.",
"key": "x"
},
{
"value": "feat",
"name": "feat: A new feature. Correlates with MINOR in SemVer.",
"key": "f"
},
{
"value": "docs",
"name": "docs: Documentation only changes.",
"key": "d"
},
{
"value": "style",
"name": "style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.).",
"key": "s"
},
{
"value": "refactor",
"name": "refactor: A code change that neither fixes a bug nor adds a feature.",
"key": "r"
},
{
"value": "perf",
"name": "perf: A code change that improves performance.",
"key": "p"
},
{
"value": "test",
"name": "test: Adding missing or correcting existing tests.",
"key": "t"
},
{
"value": "build",
"name": "build: Use this for ongoing work that should be tracked in the changelog.",
"key": "b"
},
{
"value": "ci",
"name": "ci: Changes to our CI configuration files and scripts (example scopes: GitHub).",
"key": "c"
},
{
"value": "chore",
"name": "chore: Maintenance. Correlates with PATCH in SemVer.",
"key": "h"
}
]
},
{
"type": "list",
"name": "scope",
"message": "What is the scope of this change? (class or file name): (press [enter] to skip) ",
"choices": [
{
"value": "front",
"name": "front: Changes to Svelte and the front end."
},
{
"value": "back",
"name": "back: Changes to the back end not directly related to Strapi."
},
{
"value": "ci",
"name": "ci: CI/CD changes like GitHub Workflows etc."
},
{
"value": "github",
"name": "github: GitHub-specific changes to CI/CD, secrets, etc."
},
{
"value": "backstop",
"name": "backstop: BackstopJS-specific changes to scenarios, configuration, etc."
},
{
"value": "perf",
"name": "perf: Perf testing, configuration, and/or enhancements."
},
{
"value": "project",
"name": "project: Configuration, CI/CD, Developer Experience, etc."
},
{
"value": "strapi",
"name": "strapi: CMS changes, updates, etc."
},
{
"value": "terraform",
"name": "terraform: Changes to Terraform/Infrastructure."
},
{
"value": "docker",
"name": "docker: Changes to Dockerfiles/build steps."
},
{
"value": "testing",
"name": "testing: Changes to testing utils/tests."
},
{
"value": "utils",
"name": "utils: Changes to developer scripts and utils."
}
]
},
{
"type": "input",
"name": "subject",
"message": "Write a short and imperative summary of the code changes: (lower case and no period)\n"
},
{
"type": "input",
"name": "body",
"message": "Provide additional contextual information about the code changes: (press [enter] to skip)\n"
},
{
"type": "confirm",
"message": "Is this a BREAKING CHANGE? Correlates with MAJOR in SemVer",
"name": "is_breaking_change",
"default": false
},
{
"type": "input",
"name": "footer",
"message": "Footer. Information about Breaking Changes and reference issues that this commit closes: (press [enter] to skip)\n"
}
]
}
}
}