Add release notes generated with git-cliff
This commit is contained in:
parent
808bc48ab9
commit
a457605ab4
2 changed files with 63 additions and 4 deletions
47
cliff.toml
Normal file
47
cliff.toml
Normal file
|
@ -0,0 +1,47 @@
|
|||
# git-cliff ~ default configuration file
|
||||
# https://git-cliff.org/docs/configuration
|
||||
#
|
||||
# Lines starting with "#" are comments.
|
||||
# Configuration options are organized into tables and keys.
|
||||
# See documentation for more information on available options.
|
||||
|
||||
[changelog]
|
||||
trim = true
|
||||
|
||||
header = "## Changes"
|
||||
|
||||
body = """
|
||||
{% for group, commits in commits | filter(attribute="merge_commit") | group_by(attribute="group") %}
|
||||
### {{ group | striptags | trim | upper_first }}
|
||||
{% for commit in commits %}
|
||||
* https://code.host.antville.org/antville/helma/commit/{{ commit.id }} \
|
||||
{% if commit.breaking %}**Breaking:** {% endif %}\
|
||||
{{ commit.message | split(pat="\\n") | first | upper_first }}\
|
||||
{% endfor %}
|
||||
{% endfor %}\n
|
||||
"""
|
||||
|
||||
footer = """
|
||||
_Generated by [git-cliff](https://git-cliff.org/)._
|
||||
"""
|
||||
|
||||
[git]
|
||||
conventional_commits = false
|
||||
filter_commits = false
|
||||
filter_unconventional = false
|
||||
protect_breaking_commits = false
|
||||
sort_commits = "newest"
|
||||
split_commits = false
|
||||
topo_order = false
|
||||
|
||||
commit_parsers = [
|
||||
{ message = "^Apply \\d+ suggestion", skip = true },
|
||||
{ message = "^Merge .*(branch|dependency|renovate)", skip = true },
|
||||
{ message = "^Lock file maintenance", skip = true },
|
||||
{ message = "yarn\\.lock", skip = true },
|
||||
|
||||
{ message = "^fix", group = "<!-- 0 --># 🐛 Bug Fixes" },
|
||||
{ field = "author.name", pattern = "renovate", group = "<!-- 2 --> 📦️ Dependency Updates" },
|
||||
{ message = "^Merge pull request .+ into (main|helma-)", group = "<!-- 9 --> 🔀 Merges" },
|
||||
{ message = ".*", group = "<!-- 1 --> Uncategorized" },
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue