-
Notifications
You must be signed in to change notification settings - Fork 0
/
release-plz.toml
40 lines (37 loc) · 1.62 KB
/
release-plz.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[changelog]
header = """
# 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") }}
{% else %}\
## [unreleased]
{% endif %}\
{% 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 -%} ([{{commit.id | truncate(length=7, end="")}}](https://github.com/tomcur/hi-nvim-rs/commit/{{commit.id}}))
{% endfor %}
{% endfor %}\n
"""
commit_parsers = [
{ message = "!:", group = "<!-- 0 -->Breaking" },
{ message = "^feat", group = "<!-- 1 -->Features" },
{ message = "^fix", group = "<!-- 2 -->Bug Fixes" },
{ message = "^doc", group = "<!-- 3 -->Documentation" },
{ message = "^refactor", group = "<!-- 4 -->Refactor" },
{ message = "^test", group = "<!-- 5 -->Testing" },
{ message = "^build", group = "<!-- 6 -->Build System and CI" },
{ message = "^ci", group = "<!-- 6 -->Build System and CI" },
{ message = ".*", group = "<!-- 7 -->Other" }
]
# TODO: once git-only mode is supported, bump hi-nvim-rs-web and
# hi-nvim-rs-web-styler versions using that.
# see: https://github.com/MarcoIeni/release-plz/pull/1497