mirror of
https://gitlab.com/mfocko/LeetCode.git
synced 2024-11-10 00:09:06 +01:00
27 lines
735 B
TOML
27 lines
735 B
TOML
|
[tool]
|
|||
|
[tool.commitizen]
|
|||
|
name = "cz_customize"
|
|||
|
|
|||
|
[tool.commitizen.customize]
|
|||
|
message_template = "{{type_lang}}: add «{{problem}}»"
|
|||
|
example = "cpp: add «997. Find the Town Judge»"
|
|||
|
schema = "‹type_lang›: ‹message›"
|
|||
|
schema_pattern = """\
|
|||
|
(?s)\
|
|||
|
(chore|ci|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"]
|
|||
|
message = "Select the language (or type of change) you are commiting"
|
|||
|
|
|||
|
[[tool.commitizen.customize.questions]]
|
|||
|
type = "input"
|
|||
|
name = "problem"
|
|||
|
message = "Type the problem name in form of: ‹number. Name›"
|