-
Notifications
You must be signed in to change notification settings - Fork 37
/
.cz.toml
51 lines (45 loc) · 2.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
[tool.commitizen]
name = "cz_customize"
[tool.commitizen.customize]
message_template = "({{jira_ticket}}){% if affected_repository %}[{{affected_repository}}]{% endif %} {{change_type}}: {{message}}"
schema = "(<ticket_number>)[<affected_repository>] <type>: <commit_message>"
schema_pattern = "\\((PC-\\d+|BSR)\\)(\\[(API|PRO|ADAGE|BO)\\])? ?(build|ci|docs|feat|fix|perf|refactor|script|style|test|chore|revert|bump)(\\[[\\w\\s]+\\])?:[\\w\\s]+"
example = "(PC-88888)[API] feat: this is such a great commit"
[[tool.commitizen.customize.questions]]
type = "input"
name = "jira_ticket"
message = "'BSR' or Jira ticket number. e.g. PC-XXXX"
[[tool.commitizen.customize.questions]]
type = "list"
name = "affected_repository"
choices = [
{value = "API", name = "API"},
{value = "PRO", name = "PRO"},
{value = "ADAGE", name = "ADAGE"},
{value = "BO", name = "BO"},
{value = "", name = "None of the above"}
]
message = "Select the repository affected by the change you are committing"
[[tool.commitizen.customize.questions]]
type = "list"
name = "change_type"
choices = [
{value = "fix", name = "fix: A bug fix"},
{value = "feat",name = "feat: A new feature"},
{value = "docs", name = "docs: Documentation only changes"},
{value = "script", name = "script: A one-time only script"},
{value = "style",name = "style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)"},
{value = "refactor",name = "refactor: A code change that neither fixes a bug nor adds a feature"},
{value = "perf",name = "perf: A code change that improves performance"},
{value = "test",name = "test: Adding missing or correcting existing tests"},
{value = "build",name = "build: Changes that affect the build system or external dependencies (example scopes: pip, docker, npm)"},
{value = "ci",name = "ci: Changes to our CI configuration files and scripts (example scopes: GitLabCI)"},
{value = "bump",name="bump: Dependencies version bump"},
{value = "revert",name="revert: Revert a commit"},
{value = "chore",name="chore: A maintenance task to be done periodically"}
]
message = "Select the type of changes you are committing"
[[tool.commitizen.customize.questions]]
type = "input"
name = "message"
message = "Commit message:"