forked from xoe-labs/coredns-ldap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cz.toml
87 lines (71 loc) · 2.7 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
# use with https://commitizen-tools.github.io/commitizen/
[tool.commitizen]
name = "cz_customize"
version = "0.0.1"
tag_format = "$version"
[tool.commitizen.customize]
message_template = """{{change_type}}: {{change_message}}{% if changed_components %}
components: {{changed_components}}{% endif %}{% if change_reason %}
{{change_reason}}{% endif %}{% if solved_ticket %}
fixes {{solved_ticket}}]{% endif %}"""
example = """imp: sync feature
components: module
Previously, sync was done synchronously, now we sync every
syncInterval (default: 60s) and store the records in memory.
This way we can reduce the chatter with the backend service without significant
downside on actuality of entries. Since syncInterval is configurable,
operators still can fine tune to their needs.
fixes #123
"""
schema = """
<type>: <title>
[
components: <components>]
[
<reason>]
[
fixes <ticket>]
"""
bump_pattern = "^(break|imp|add|fix)"
bump_map = {"break" = "MAJOR", "add" = "MINOR", "imp" = "MINOR", "fix" = "PATCH"}
info = """
Well-formed commit messages are used to craft CHANGELOG.md and to determine
version bumps. Please procure for a parseable history on master branch.
"""
[[tool.commitizen.customize.questions]]
type = "list"
name = "change_type"
choices = [
{value = "break", name = "break - principal: affect the configuration api in backwards incompatible way"},
{value = "imp", name = "imp - principal: improve an existing feature"},
{value = "add", name = "add - principal: add a new feature"},
{value = "fix", name = "fix - principal: fix something, usually closing an issueo"},
{value = "ref", name = "ref - principal: refactor code strictly without altering it's behaviour"},
{value = "fixup", name = "fixup - auxiliary: fixup a previous commit, used for oversights, typos, etc."},
{value = "wip", name = "wip - auxiliary: commit work in progress (do it frequently)"},
{value = "revert", name = "revert - maintenance: revert a previous committ"},
{value = "chore", name = "chore - maintenance: commit on repository tooling"},
{value = "lint", name = "lint - maintenance: commit on linting"},
]
message = "Select type of change:"
[[tool.commitizen.customize.questions]]
type = "input"
name = "change_message"
message = "Short title:"
[[tool.commitizen.customize.questions]]
type = "list"
name = "changed_components"
choices = [
"",
"module",
"tests",
]
message = "Select components - optional:"
[[tool.commitizen.customize.questions]]
type = "input"
name = "change_reason"
message = "Detail change reason - optional:"
[[tool.commitizen.customize.questions]]
type = "input"
name = "solved_ticket"
message = "Issue(s) solved - optional; format '#123':"