2024-02-22 16:51:33 +01:00
|
|
|
|
[tool]
|
|
|
|
|
[tool.commitizen]
|
|
|
|
|
name = "cz_customize"
|
|
|
|
|
|
|
|
|
|
[tool.commitizen.customize]
|
2024-11-09 23:21:24 +01:00
|
|
|
|
message_template = "{{type_lang}}: add «{{no}}. {{problem}}»\n\nURL:\t{{problem_link}}\n"
|
2024-02-22 16:51:33 +01:00
|
|
|
|
example = "cpp: add «997. Find the Town Judge»"
|
|
|
|
|
schema = "‹type_lang›: ‹message›"
|
|
|
|
|
schema_pattern = """\
|
|
|
|
|
(?s)\
|
2024-05-17 18:11:39 +02:00
|
|
|
|
(chore|ci|style|cpp|cs|go|java|js|kt|rb|rs|swift)\
|
2024-02-22 16:51:33 +01:00
|
|
|
|
(\\(\\S+\\))?!?:\
|
|
|
|
|
( [^\\n\\r]+)\
|
|
|
|
|
((\\n\\n.*)|(\\s*))?$\
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
[[tool.commitizen.customize.questions]]
|
|
|
|
|
type = "list"
|
|
|
|
|
name = "type_lang"
|
2024-05-17 18:11:39 +02:00
|
|
|
|
choices = ["cpp", "cs", "go", "java", "js", "kt", "rb", "rs", "swift", "chore", "ci", "style"]
|
2024-02-22 16:51:33 +01:00
|
|
|
|
message = "Select the language (or type of change) you are commiting"
|
|
|
|
|
|
2024-02-29 23:28:16 +01:00
|
|
|
|
[[tool.commitizen.customize.questions]]
|
|
|
|
|
type = "input"
|
|
|
|
|
name = "no"
|
|
|
|
|
message = "Type the number of the problem"
|
|
|
|
|
|
2024-02-22 16:51:33 +01:00
|
|
|
|
[[tool.commitizen.customize.questions]]
|
|
|
|
|
type = "input"
|
|
|
|
|
name = "problem"
|
2024-02-29 23:28:16 +01:00
|
|
|
|
message = "Type the problem name (capitalized)"
|
2024-10-08 11:32:22 +02:00
|
|
|
|
|
|
|
|
|
[[tool.commitizen.customize.questions]]
|
|
|
|
|
type = "input"
|
|
|
|
|
name = "problem_link"
|
|
|
|
|
message = "Type the link to the problem"
|