chore(cz): add link to the problem to commit template

Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2024-10-08 11:32:22 +02:00
parent 032ac3b9ae
commit 1f69732126
Signed by: mfocko
SSH key fingerprint: SHA256:icm0fIOSJUpy5+1x23sfr+hLtF9UhY8VpMC7H4WFJP8

View file

@ -3,7 +3,7 @@
name = "cz_customize" name = "cz_customize"
[tool.commitizen.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»" example = "cpp: add «997. Find the Town Judge»"
schema = "type_lang: message" schema = "type_lang: message"
schema_pattern = """\ schema_pattern = """\
@ -29,3 +29,8 @@ message = "Type the number of the problem"
type = "input" type = "input"
name = "problem" name = "problem"
message = "Type the problem name (capitalized)" message = "Type the problem name (capitalized)"
[[tool.commitizen.customize.questions]]
type = "input"
name = "problem_link"
message = "Type the link to the problem"