diff --git a/.cz.toml b/.cz.toml new file mode 100644 index 0000000..23da9e5 --- /dev/null +++ b/.cz.toml @@ -0,0 +1,97 @@ + +[tool.commitizen] +version_files = ["pyproject.toml:version"] +version = "2.8.28" +tag_format = "v$version" +name = "cz_customize" + +[tool.commitizen.customize] +message_template = "{{prefix}}{% if scope %}({{scope}}){% endif %}: {{subject}}{% if body %}\n\n{{body}}{% endif %}{% if is_breaking_change %}\n\nBREAKING CHANGE: {{footer}}{% else %}\n\n{{footer}}{% endif %}" + +bump_pattern = "^(BREAKING[\\-\\ ]CHANGE|feat|fix|refactor|perf|ci|docs|style|test|chore|revert|build)(\\(.+\\))?(!)?" +change_type_order = [ + "BREAKING CHANGE", + "Feat", + "Fix", + "Refactor", + "Perf", + "CI", + "Docs", + "Technical", + "Tests", +] +bump_message = "bump: version $current_version → $new_version" +schema = "(): \n\n\n\n(BREAKING CHANGE: )