build: rename and improve template for git tag patchnotes

simple -> tag

Handle the strangeness in how git wants to format tag messages
This commit is contained in:
Paul Stemmet 2022-04-03 15:51:02 +00:00 committed by Paul Stemmet
parent 2b49e4068b
commit 33f146b550
1 changed files with 11 additions and 3 deletions

View File

@ -1,10 +1,18 @@
{%- if version -%}
## [{{ version }}] - {{ timestamp | date(format="%Y-%m-%d") }}
+
===================
{{ version }} - {{ timestamp | date(format="%Y-%m-%d") }}
===================
{%- else -%}
## Unreleased
+
==========
Unreleased
==========
{%- endif -%}
{%- if true %}
{% endif -%}
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{{ group | upper_first }}
{%- for commit in commits %}
- {% if commit.breaking %}**breaking** {% endif %}{{ commit.message }}
{%- endfor -%}