From 1f69732126c0e0433b3b098b4eef04002464352f Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Tue, 8 Oct 2024 11:32:22 +0200 Subject: [PATCH] chore(cz): add link to the problem to commit template Signed-off-by: Matej Focko --- .cz.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.cz.toml b/.cz.toml index 0e9faa2..e4df64e 100644 --- a/.cz.toml +++ b/.cz.toml @@ -3,7 +3,7 @@ name = "cz_customize" [tool.commitizen.customize] -message_template = "{{type_lang}}: add «{{no}}. {{problem}}»" +message_template = "{{type_lang}}: add «{{no}}. {{problem}}»\n\nURL:\t{{problem_link}}" example = "cpp: add «997. Find the Town Judge»" schema = "‹type_lang›: ‹message›" schema_pattern = """\ @@ -29,3 +29,8 @@ message = "Type the number of the problem" type = "input" name = "problem" message = "Type the problem name (capitalized)" + +[[tool.commitizen.customize.questions]] +type = "input" +name = "problem_link" +message = "Type the link to the problem"