-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add cliff.toml for autogeneration of changelog
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
[changelog] | ||
header = """""" | ||
body = """ | ||
{% for group, commits in commits | group_by(attribute="group") %} | ||
### {{ group | upper_first }} | ||
{% for commit in commits %} | ||
* {{ commit.message | upper_first }}\ | ||
{% if commit.breaking %} (**breaking**){% endif %}\ | ||
{%- if commit.links %} ({% for link in commit.links %}{{link.text}}{% endfor -%}){% endif %}\ | ||
{%- if commit.body %}\n → {{ commit.body }}{%- endif %}\ | ||
{% endfor %} | ||
{% endfor %}\n | ||
""" | ||
footer = """ | ||
### Acknowledgements | ||
Again there has been several contributions from the community, and as before I would like to give a special thanks to everyone who contributes with PRs: . | ||
""" | ||
trim = false | ||
|
||
[git] | ||
conventional_commits = true | ||
filter_unconventional = true | ||
commit_parsers = [ | ||
{ message = "^feat", group = "Features"}, | ||
{ message = "^fix", group = "Bug Fixes"}, | ||
{ message = "^merge", group = "Merges"}, | ||
{ message = "^doc", group = "Documentation"}, | ||
{ message = "^perf", group = "Performance"}, | ||
{ message = "^test", skip = true}, | ||
{ message = "^chore", skip = true}, | ||
] | ||
link_parsers = [ { pattern = "#(\\d+)", href = "$1"} ] |