-
Notifications
You must be signed in to change notification settings - Fork 4
/
cliff.toml
158 lines (114 loc) · 3.73 KB
/
cliff.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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# SPDX-FileCopyrightText: 2021 Agathe Porte <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
# configuration file for git-cliff (0.1.0)
[changelog]
# changelog header
header = """
<!--
SPDX-FileCopyrightText: 2022 Agathe Porte <[email protected]>
SPDX-License-Identifier: Apache-2.0 OR MIT
-->
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
"""
# template for the changelog body
# https://tera.netlify.app/docs/#introduction
body = """
{% if version %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## [unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits %}
- {{ commit.message | upper_first }}\
{% endfor %}
{% endfor %}\n
"""
# remove the leading and trailing whitespaces from the template
trim = true
# changelog footer
footer = """
## [1.0.1] - 2021-09-20
### Added
- New example of use with the Relm crate.
- Use [cargo-release](https://github.com/crate-ci/cargo-release) for release
handling.
## [1.0.0] - 2021-07-05
### Added
- Simple example of use.
- Automated build and test based on Github Actions.
### Changed
- Updated both crates to depend on gtk (gtk-rs) 0.14 (previously was: 0.4.1).
## [0.4.1] - 2020-08-08
### Added
- Implement Display + Error for error types.
- Fix clippy lints
## [0.4.0] - 2020-07-30
### Added
- Proper error handling.
### Changed
- Fixed missing automatic derive import.
- Implement trivial functions in the trait directly instead of in the macro.
### Removed
- Now useless mention of the `gladis_proc_macro` crate in README.
## [0.3.1] - 2020-07-30
### Changed
- Fixed wrong version example in README.md.
## [0.3.0] - 2020-07-30
### Changed
- Changed license from Apache 2 to dual licensed Apache 2 + MIT to be compatible
with GPLv2 software.
- Regrouped `gladis` and `gladis_proc_macro` under the same repository using
Cargo workspace.
## [0.2.1] - 2020-07-19
### Added
- Basic documentation with doctests.
## [0.2.0] - 2020-07-16
### Changed
- Renamed `from_glade_src` to `from_string` to match the gtk::Builder function
names.
- Updated README with a new example.
## [0.1.2] - 2020-07-14
### Added
- New `from_resource` and `from_builder` functions.
- New dependency to gtk as it is now necessary for `from_builder`
prototype.
## [0.1.1] - 2020-07-14
### Changed
- Fix wrong repository link in Cargo.toml.
## [0.1.0] - 2020-07-14
- Initial release.
"""
[git]
# parse the commits based on https://www.conventionalcommits.org
conventional_commits = true
# filter out the commits that are not conventional
filter_unconventional = true
# regex for parsing and grouping commits
commit_parsers = [
{ message = "^.*: (add|introduce)", group = "Added"},
{ message = "^.*: support", group = "Added"},
{ message = "^.*: remove", group = "Removed"},
{ message = "^.*: delete", group = "Removed"},
{ message = "^test", group = "Fixed"},
{ message = "^fix", group = "Fixed"},
{ message = "^.*: fix", group = "Fixed"},
{ message = "^.*", group = "Changed"},
]
# filter out the commits that are not matched by commit parsers
filter_commits = true
# glob pattern for matching git tags
tag_pattern = "v[0-9]*"
# regex for skipping tags
skip_tags = "v0.1.0|v0.1.1|v0.1.2|v0.2.0|v0.2.1|v0.3.0|v0.3.1|v0.4.0|v0.4.1|v1.0.0|v1.0.1"
# regex for ignoring tags
ignore_tags = ""
# sort the tags topologically
topo_order = false
# sort the commits inside sections by oldest/newest order
sort_commits = "oldest"