MCPcopy Create free account
hub / github.com/commitizen-tools/commitizen / questions

Method questions

tests/conftest.py:211–242  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

209 }
210
211 def questions(self) -> list[CzQuestion]:
212 return [
213 {
214 "type": "list",
215 "name": "prefix",
216 "message": "Select the type of change you are committing",
217 "choices": [
218 {
219 "value": "patch",
220 "name": "patch: a bug fix",
221 "key": "p",
222 },
223 {
224 "value": "minor",
225 "name": "minor: a new feature, non-breaking",
226 "key": "m",
227 },
228 {
229 "value": "major",
230 "name": "major: a breaking change",
231 "key": "b",
232 },
233 ],
234 },
235 {
236 "type": "input",
237 "name": "subject",
238 "message": (
239 "Write a short and imperative summary of the code changes: (lower case and no period)\n"
240 ),
241 },
242 ]
243
244 def message(self, answers: Mapping) -> str:
245 prefix = answers["prefix"]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected