Fix changelog

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2024-08-11 18:52:50 +07:00
parent 9d5ac4e488
commit 28abb65d31
No known key found for this signature in database
GPG Key ID: BD80F68D68D8F7F2
2 changed files with 1094 additions and 4244 deletions

File diff suppressed because it is too large Load Diff

View File

@ -9,22 +9,21 @@
# template for the changelog footer
header = """
# Changelog\n
All notable changes to this project will be documented in this file.\n
Changelog.\n
"""
# template for the changelog body
# https://keats.github.io/tera/docs/#introduction
body = """
{% if version %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}\n
{% else %}\
## [unreleased]
## [unreleased]\n
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits %}
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}\
{% for commit in commits %}\
* {{ group | striptags | trim | upper }}: {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
{% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit.message | upper_first }}\
{{ commit.message | trim | upper_first }}\
{% endfor %}
{% endfor %}\n
"""