-
Notifications
You must be signed in to change notification settings - Fork 1
/
.cz.toml
142 lines (136 loc) Β· 8.27 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
[tool.commitizen]
name = "cz_customize"
tag_format = "v$version"
version_scheme = "pep440"
version_provider = "poetry"
update_changelog_on_bump = true
major_version_zero = true
version_files = ["pyproject.toml:^version"]
bump_message = "π release: v$current_version β v$new_version"
[tool.commitizen.customize]
message_template = "{{change_type}}: {{message}}"
example = "β¨ feat: this feature enables customization through config file"
schema = "<change_type>: <message>"
schema_pattern = "^(?P<emoji>[^\\s]+)\\s(?P<change_type>feat|fix|hotfix|docs|license|style|logs|rm_logs|refactor|test|release|deploy|config|scripts|ci_fix|ci_update|ui|types|lint|add_dep|rm_dep|downgrade|upgrade|pin|analytics|i18n|typos|init|wip|revert|merge|compiled|api|move|breaking|accessibility|comments|drunk|ux|architecture|gitignore|flags|catch_errors|deprecate|rm_dead_code|dev_exp|performance|rm_code|assets):\\s(?P<message>.+)"
bump_pattern = "^\\S.*(feat|fix|hotfix|breaking)"
bump_map = {"breaking" = "MAJOR", "feat" = "MINOR", "fix" = "PATCH", "hotfix" = "PATCH"}
change_type_order = ["BREAKING CHANGE", "feat", "fix", "hotfix", "perf", "refactor", "docs", "style", "test", "build", "ci", "chore", "revert", "release", "wip"]
commit_parser = "^(?P<emoji>[^\\s]+)\\s(?P<change_type>feat|fix|hotfix|docs|license|style|logs|rm_logs|refactor|test|deploy|config|scripts|ci_fix|ci_update|ui|types|lint|add_dep|rm_dep|downgrade|upgrade|pin|analytics|i18n|typos|init|wip|revert|merge|compiled|api|move|breaking|accessibility|comments|drunk|ux|architecture|gitignore|flags|catch_errors|deprecate|rm_dead_code|dev_exp|performance|rm_code|assets):\\s(?P<message>.+)$"
changelog_pattern = "^\\S.*(feat|fix|hotfix|docs|style|refactor|config|scripts|breaking)?(!)?"
change_type_map = {"breaking" = "Breaking", "feat" = "Feat", "fix" = "Fix", "hotfix" = "Hotfix", "docs" = "Docs", "refactor" = "Refactor", "config" = "Config", "scripts" = "Scripts", "style" = "Style"}
info = """
This is a customized Commitizen configuration for our project.
Commit Types:
- β¨ feat: Introduce new features.
- π fix: Fix a bug.
- ποΈ hotfix: Hotfix a bug.
- π docs: Add or update documentation.
- π license: Add or update license.
- π¨ style: Improve structure/format of the code.
- π logs: Add or update logs.
- π rm_logs: Remove logs.
- β»οΈ refactor: Refactor code.
- β
test: Add, update, or pass tests.
- π release: Release / Version tags.
- π deploy: Deploy stuff.
- π§ config: Add or update configuration files.
- π¨ scripts: Add or update development scripts.
- π ci_fix: Fix CI Build.
- π· ci_update: Add or update CI build system.
- π ui: Add or update the UI and style files.
- π·οΈ types: Add or update types.
- π¨ lint: Fix compiler/linter warnings.
- β add_dep: Add a dependency.
- β rm_dep: Remove a dependency.
- β¬οΈ downgrade: Downgrade dependencies.
- β¬οΈ upgrade: Upgrade dependencies.
- π pin: Pin dependencies to specific versions.
- π analytics: Add or update analytics or track code.
- π i18n: Internationalization and localization.
- βοΈ typos: Fix typos.
- π init: Begin a project.
- π§ wip: Work in progress.
- βͺοΈ revert: Revert changes.
- π merge: Merge branches.
- π¦οΈ compiled: Add or update compiled files or packages.
- π½οΈ api: Update code due to external API changes.
- π move: Move or rename resources (e.g., files, paths, routes).
- π₯ breaking: Introduce breaking changes.
- βΏοΈ accessibility: Improve accessibility.
- π‘ comments: Add or update comments in source code.
- π» drunk: Write code drunkenly.
- πΈ ux: Improve user experience/usability.
- ποΈ architecture: Make architectural changes.
- π gitignore: Add or update a .gitignore file.
- π© flags: Add, update, or remove feature flags.
- π₯
catch_errors: Catch errors.
- ποΈ deprecate: Deprecate code that needs to be cleaned up.
- β°οΈ rm_dead_code: Remove dead code.
- π§βπ» dev_exp: Improve developer experience.
- β‘οΈ performance: Improve performance.
- π₯ rm_code: Remove code or files.
- π± assets: Add or update assets.
Each commit message should follow this format:
<change_type>: <message>
Example:
β¨ feat: Add new authentication module
"""
[[tool.commitizen.customize.questions]]
type = "list"
name = "change_type"
choices = [
{value = "β¨ feat", name = "β¨ feat: Introduce new features."},
{value = "π fix", name = "π fix: Fix a bug."},
{value = "ποΈ hotfix", name = "ποΈ hotfix: Hotfix a bug."},
{value = "π docs", name = "π docs: Add or update documentation."},
{value = "π license", name = "π license: Add or update license."},
{value = "π¨ style", name = "π¨ style: Improve structure/format of the code."},
{value = "π logs", name = "π logs: Add or update logs."},
{value = "π rm_logs", name = "π rm_logs: Remove logs."},
{value = "β»οΈ refactor", name = "β»οΈ refactor: Refactor code."},
{value = "β
test", name = "β
test: Add, update, or pass tests."},
{value = "π release", name = "π release: Release / Version tags."},
{value = "π deploy", name = "π deploy: Deploy stuff."},
{value = "π§ config", name = "π§ config: Add or update configuration files."},
{value = "π¨ scripts", name = "π¨ scripts: Add or update development scripts."},
{value = "π ci_fix", name = "π ci_fix: Fix CI Build."},
{value = "π· ci_update", name = "π· ci_update: Add or update CI build system."},
{value = "π ui", name = "π ui: Add or update the UI and style files."},
{value = "π·οΈ types", name = "π·οΈ types: Add or update types."},
{value = "π¨ lint", name = "π¨ lint: Fix compiler/linter warnings."},
{value = "β add_dep", name = "β add_dep: Add a dependency."},
{value = "β rm_dep", name = "β rm_dep: Remove a dependency."},
{value = "β¬οΈ downgrade", name = "β¬οΈ downgrade: Downgrade dependencies."},
{value = "β¬οΈ upgrade", name = "β¬οΈ upgrade: Upgrade dependencies."},
{value = "π pin", name = "π pin: Pin dependencies to specific versions."},
{value = "π analytics", name = "π analytics: Add or update analytics or track code."},
{value = "π i18n", name = "π i18n: Internationalization and localization."},
{value = "βοΈ typos", name = "βοΈ typos: Fix typos."},
{value = "π init", name = "π init: Begin a project."},
{value = "π§ wip", name = "π§ wip: Work in progress."},
{value = "βͺοΈ revert", name = "βͺοΈ revert: Revert changes."},
{value = "π merge", name = "π merge: Merge branches."},
{value = "π¦οΈ compiled", name = "π¦οΈ compiled: Add or update compiled files or packages."},
{value = "π½οΈ api", name = "π½οΈ api: Update code due to external API changes."},
{value = "π move", name = "π move: Move or rename resources (e.g., files, paths, routes)."},
{value = "π₯ breaking", name = "π₯ breaking: Introduce breaking changes."},
{value = "βΏοΈ accessibility", name = "βΏοΈ accessibility: Improve accessibility."},
{value = "π‘ comments", name = "π‘ comments: Add or update comments in source code."},
{value = "π» drunk", name = "π» drunk: Write code drunkenly."},
{value = "πΈ ux", name = "πΈ ux: Improve user experience/usability."},
{value = "ποΈ architecture", name = "ποΈ architecture: Make architectural changes."},
{value = "π gitignore", name = "π gitignore: Add or update a .gitignore file."},
{value = "π© flags", name = "π© flags: Add, update, or remove feature flags."},
{value = "π₯
catch_errors", name = "π₯
catch_errors: Catch errors."},
{value = "ποΈ deprecate", name = "ποΈ deprecate: Deprecate code that needs to be cleaned up."},
{value = "β°οΈ rm_dead_code", name = "β°οΈ rm_dead_code: Remove dead code."},
{value = "π§βπ» dev_exp", name = "π§βπ» dev_exp: Improve developer experience."},
{value = "β‘οΈ performance", name = "β‘οΈ performance: Improve performance."},
{value = "π₯ rm_code", name = "π₯ rm_code: Remove code or files."},
{value = "π± assets", name = "π± assets: Add or update assets."}
]
message = "Select the type of change you are committing"
[[tool.commitizen.customize.questions]]
type = "input"
name = "message"
message = "Please input commit message body:\n"