chore(cz): update commitizen config

• 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>
This commit is contained in:
Matej Focko 2024-05-17 18:11:39 +02:00
parent 583767008c
commit 8e227bd7c2
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -8,7 +8,7 @@ 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)\
(chore|ci|style|cpp|cs|go|java|js|kt|rb|rs|swift)\
(\\(\\S+\\))?!?:\
( [^\\n\\r]+)\
((\\n\\n.*)|(\\s*))?$\
@ -17,7 +17,7 @@ schema_pattern = """\
[[tool.commitizen.customize.questions]]
type = "list"
name = "type_lang"
choices = ["cpp", "rs", "cs", "go", "java", "kt", "js", "rb", "swift", "chore", "ci", "style"]
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]]