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 = "type_lang: message"
schema_pattern = """\ schema_pattern = """\
(?s)\ (?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+\\))?!?:\ (\\(\\S+\\))?!?:\
( [^\\n\\r]+)\ ( [^\\n\\r]+)\
((\\n\\n.*)|(\\s*))?$\ ((\\n\\n.*)|(\\s*))?$\
@ -17,7 +17,7 @@ schema_pattern = """\
[[tool.commitizen.customize.questions]] [[tool.commitizen.customize.questions]]
type = "list" type = "list"
name = "type_lang" 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" message = "Select the language (or type of change) you are commiting"
[[tool.commitizen.customize.questions]] [[tool.commitizen.customize.questions]]