LeetCode/.cz.toml
Matej Focko c5d0cc0c89
chore(cz): add missing newline at the end of URL
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-11-09 23:21:24 +01:00

36 lines
999 B
TOML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[tool]
[tool.commitizen]
name = "cz_customize"
[tool.commitizen.customize]
message_template = "{{type_lang}}: add «{{no}}. {{problem}}»\n\nURL:\t{{problem_link}}\n"
example = "cpp: add «997. Find the Town Judge»"
schema = "type_lang: message"
schema_pattern = """\
(?s)\
(chore|ci|style|cpp|cs|go|java|js|kt|rb|rs|swift)\
(\\(\\S+\\))?!?:\
( [^\\n\\r]+)\
((\\n\\n.*)|(\\s*))?$\
"""
[[tool.commitizen.customize.questions]]
type = "list"
name = "type_lang"
choices = ["cpp", "cs", "go", "java", "js", "kt", "rb", "rs", "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 (capitalized)"
[[tool.commitizen.customize.questions]]
type = "input"
name = "problem_link"
message = "Type the link to the problem"