chore(cz): add link to the problem to commit template
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
032ac3b9ae
commit
1f69732126
1 changed files with 6 additions and 1 deletions
7
.cz.toml
7
.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"
|
||||
|
|
Loading…
Reference in a new issue