From 510ad47987f0c5b568ca1e154ce4b5bcf5f5cc3b Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Thu, 29 Feb 2024 23:28:16 +0100 Subject: [PATCH] ci(cz): separate the input of number and problem name Signed-off-by: Matej Focko --- .cz.toml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.cz.toml b/.cz.toml index f38e49e..7b199f1 100644 --- a/.cz.toml +++ b/.cz.toml @@ -3,7 +3,7 @@ name = "cz_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»" schema = "‹type_lang›: ‹message›" schema_pattern = """\ @@ -20,7 +20,12 @@ name = "type_lang" 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" +[[tool.commitizen.customize.questions]] +type = "input" +name = "no" +message = "Type the number of the problem" + [[tool.commitizen.customize.questions]] type = "input" name = "problem" -message = "Type the problem name in form of: ‹number. Name›" +message = "Type the problem name (capitalized)"