Skip to content

Commit

Permalink
chore: add cliff.toml for autogeneration of changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
lervag committed Feb 2, 2022
1 parent 0d21c0e commit b526907
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions cliff.toml
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"} ]

0 comments on commit b526907

Please sign in to comment.