1
0
Fork 0
mirror of https://gitlab.com/mfocko/LeetCode.git synced 2024-11-09 15:59:06 +01:00
LeetCode/.cz.toml
Matej Focko 778bcb1a2f
ci: adjust the commitizen config
* Reorder the languages based on the likelihood
* Add ‹style› to the possible options

Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-26 21:35:17 +01:00

26 lines
752 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 «{{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", "rs", "kt", "cs", "java", "go", "java", "js", "rb", "swift", "chore", "ci", "style"]
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"