Skip to content

Commit

Permalink
other: improve CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
uint committed Apr 30, 2024
1 parent c116e2d commit 5c0afb4
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions release-plz.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[changelog]
body = """
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits %}
{%- if commit.scope -%}
- *({{commit.scope}})* {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message }}{%- if commit.links %} ({% for link in commit.links %}[{{link.text}}]({{link.href}}) {% endfor -%}){% endif %}
{% else -%}
- {% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message }}
{% endif -%}
{% endfor -%}
{% endfor %}
"""
commit_parsers = [
{ message = "^feat", group = "<!-- 0 -->New featues" },
{ message = "^changed", group = "<!-- 1 -->Changes" },
{ message = "^deprecated", group = "<!-- 2 -->Deprecated" },
{ message = "^fix", group = "<!-- 3 -->Bug fixes" },
{ message = "^security", group = "<!-- 4 -->Security" },
{ message = "^docs", group = "<!-- 5 -->Documentation" },
{ message = "^test", group = "<!-- 6 -->Tests" },
{ message = "^.*", group = "<!-- 7 -->Other" },
]

0 comments on commit 5c0afb4

Please sign in to comment.