ci(cz): separate the input of number and problem name

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2024-02-29 23:28:16 +01:00
parent 482a94aa73
commit 510ad47987
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -3,7 +3,7 @@
name = "cz_customize" name = "cz_customize"
[tool.commitizen.customize] [tool.commitizen.customize]
message_template = "{{type_lang}}: add «{{problem}}»" message_template = "{{type_lang}}: add «{{no}}. {{problem}}»"
example = "cpp: add «997. Find the Town Judge»" example = "cpp: add «997. Find the Town Judge»"
schema = "type_lang: message" schema = "type_lang: message"
schema_pattern = """\ schema_pattern = """\
@ -20,7 +20,12 @@ name = "type_lang"
choices = ["cpp", "rs", "kt", "cs", "java", "go", "java", "js", "rb", "swift", "chore", "ci", "style"] choices = ["cpp", "rs", "kt", "cs", "java", "go", "java", "js", "rb", "swift", "chore", "ci", "style"]
message = "Select the language (or type of change) you are commiting" message = "Select the language (or type of change) you are commiting"
[[tool.commitizen.customize.questions]]
type = "input"
name = "no"
message = "Type the number of the problem"
[[tool.commitizen.customize.questions]] [[tool.commitizen.customize.questions]]
type = "input" type = "input"
name = "problem" name = "problem"
message = "Type the problem name in form of: number. Name" message = "Type the problem name (capitalized)"