-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcz.yaml
More file actions
101 lines (90 loc) · 2.93 KB
/
Copy pathcz.yaml
File metadata and controls
101 lines (90 loc) · 2.93 KB
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
---
commitizen:
major_version_zero: true
tag_format: v$version
update_changelog_on_bump: true
version: 0.2.0
version_scheme: semver2
name: cz_customize
customize:
schema: "<type>(<scope>)?: <message>"
schema_pattern: "^(?:bump|feat|fix|perf|refactor|docs|style|test|chore|dev|build|ci|revert|other)(?:\\([A-Za-z0-9_\\-\\/\\.]+\\))?(!)?:\\s.+$"
message_template: >
{{ change_type }}{% if scope %}({{ scope }}){% endif %}{% if is_breaking %}!{% endif %}: {{ message }}
{% if body %}
{{ body }}{% endif %}
{% if is_breaking %}
{% if footer %}
BREAKING CHANGE: {{ footer }}{% else %}
BREAKING CHANGE{% endif %}
{% elif footer %}
{{ footer }}{% endif %}
# ordering / labels
change_type_order:
- feat
- fix
- perf
- refactor
- docs
- style
- test
- chore
- dev
- build
- ci
change_type_map:
chore: "Chore"
# which commit types influence semver bumping
bump_pattern: "^(breaking|feat|fix|perf)"
bump_map:
breaking: MAJOR
feat: MINOR
fix: PATCH
perf: PATCH
questions:
- type: list
name: change_type
message: "Select the type of change you're committing"
choices:
- value: feat
name: "feat: A new feature"
- value: fix
name: "fix: A bug fix"
- value: perf
name: "perf: Performance improvement"
- value: refactor
name: "refactor: Code change that neither fixes a bug nor adds a feature"
- value: docs
name: "docs: Documentation only changes"
- value: style
name: "style: Formatting, missing semi-colons, etc (no code change)"
- value: test
name: "test: Adding or fixing tests"
- value: chore
name: "chore: Chores/maintenance (build scripts, tooling, etc)"
- value: dev
name: "dev: Dev env configuration"
- value: build
name: "build: Build system / dependencies"
- value: ci
name: "ci: CI configuration and scripts"
- type: input
name: scope
message: "What is the scope of this change? (class or file name): (press [enter] to skip)\n"
default: ""
- type: input
name: message
message: "Write a short and imperative summary of the code changes: (lower case and no period)\n"
default: ""
- type: input
name: body
message: "Provide additional contextual information about the code changes: (press [enter] to skip)\n"
default: ""
- type: confirm
name: is_breaking
message: "Is this a BREAKING CHANGE? Correlates with MAJOR in SemVer\n"
default: false
- type: input
name: footer
message: "Footer (e.g. issues) (optional)\n"
default: ""