mirror of
https://gitlab.com/mfocko/LeetCode.git
synced 2024-09-07 20:16:57 +02:00
• fix the regex (add missing ‹style›) • reorder choices, alphabetical order is more maintainable than by the most used Signed-off-by: Matej Focko <me@mfocko.xyz>
31 lines
852 B
TOML
31 lines
852 B
TOML
[tool]
|
||
[tool.commitizen]
|
||
name = "cz_customize"
|
||
|
||
[tool.commitizen.customize]
|
||
message_template = "{{type_lang}}: add «{{no}}. {{problem}}»"
|
||
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)"
|