From 8e227bd7c22f01237b38a7c330ec67aa467984d3 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Fri, 17 May 2024 18:11:39 +0200 Subject: [PATCH] chore(cz): update commitizen config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • fix the regex (add missing ‹style›) • reorder choices, alphabetical order is more maintainable than by the most used Signed-off-by: Matej Focko --- .cz.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.cz.toml b/.cz.toml index fd7970e..0e9faa2 100644 --- a/.cz.toml +++ b/.cz.toml @@ -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]]