ci(cz): separate the input of number and problem name
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
482a94aa73
commit
510ad47987
1 changed files with 7 additions and 2 deletions
9
.cz.toml
9
.cz.toml
|
@ -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)"
|
||||||
|
|
Loading…
Reference in a new issue