-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.cz.toml
67 lines (48 loc) · 1.8 KB
/
.cz.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Default config
# ==============
[tool.commitizen]
# name = "cz_conventional_commits"
name = "cz_customize"
version = "0.1.3"
update_changelog_on_bump = true
changelog_start_rev = "0.0.1"
tag_format = "$major.$minor.$patch$prerelease"
annotated_tag = true
version_files = [
"pyproject.toml:version",
"docs/src/refs/raw/cli_usage.txt:version",
]
# Temporary config
# ==============
# While the project has not released stable version
major_version_zero = true
changelog_file = "CHANGELOG.md"
# Customizations
# ==============
# break|new|fix|hotfix|
# build|ci|docs|feat|fix|perf|refactor|style|test
[tool.commitizen.customize]
message_template = "{{change_type}}:{% if show_message %} {{message}}{% endif %}"
example = "feature: this feature enable customize through config file"
schema = "break|new|fix|hotfix|build|ci|docs|feat|fix|perf|refactor|style|test: <body>"
schema_pattern = "(bump|break|new|fix|hotfix|chore|build|ci|docs|feat|fix|perf|refactor|style|test):(\\s.*)"
bump_pattern = "^(bump|break|new|fix|hotfix)"
bump_map = {"break" = "MAJOR", "new" = "MINOR", "fix" = "PATCH", "hotfix" = "PATCH"}
# change_type_order = ["BREAKING CHANGE", "feat", "fix", "refactor", "perf"]
#info_path = "cz_customize_info.txt"
info = """
Format:
<Prefix>: <Title>
<Content>
BREAKING CHANGE
Fields:
Prefix: break|new|fix|hotfix|build|ci|docs|feat|fix|perf|refactor|style|test:
Title: ideally less than 82 chars
Breaking Change: BREAKING CHANGE inside body
"""
# commit_parser = "^(?P<change_type>feature|bug fix):\\s(?P<message>.*)?"
changelog_pattern = "^(feature|bug fix)?(!)?"
change_type_map = {"feature" = "Feat", "bug fix" = "Fix"}
# [tool.commitizen.customize]
commit_parser = "^(?P<change_type>.*):\\s(?P<message>.*)?"
change_type_order = ["BREAKING CHANGE", "feat", "fix", "refactor", "perf", "docs"]