Compare commits
2 Commits
5acddbc7c6
...
d8bf0743f7
| Author | SHA1 | Date | |
|---|---|---|---|
|
d8bf0743f7
|
|||
|
a83ee3e88f
|
10
cliff.toml
10
cliff.toml
@@ -24,6 +24,13 @@ body = """
|
|||||||
<GITEA_URL>/{{ remote.gitea.owner }}/{{ remote.gitea.repo }}
|
<GITEA_URL>/{{ remote.gitea.owner }}/{{ remote.gitea.repo }}
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
|
{%- macro indent(text, prefix=" ") -%}
|
||||||
|
{%- set lines = text | split(pat="\n") -%}
|
||||||
|
{%- for l in lines -%}
|
||||||
|
{{ prefix ~ l }}{% if not loop.last %}{{ "\n" }}{% endif %}
|
||||||
|
{%- endfor -%}
|
||||||
|
{%- endmacro -%}
|
||||||
|
|
||||||
{% if version %}\
|
{% if version %}\
|
||||||
{% if previous.version %}\
|
{% if previous.version %}\
|
||||||
## [{{ version | trim_start_matches(pat="v") }}]\
|
## [{{ version | trim_start_matches(pat="v") }}]\
|
||||||
@@ -40,9 +47,10 @@ body = """
|
|||||||
{% if commit.merge_commit %}\
|
{% if commit.merge_commit %}\
|
||||||
- 🔀 **{{ commit.message | upper_first }}** - \
|
- 🔀 **{{ commit.message | upper_first }}** - \
|
||||||
([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\
|
([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\
|
||||||
|
{% if commit.body %}\n{{ self::indent(text=commit.body, prefix=" ") }}{% endif %}\
|
||||||
{% if commit.extra and commit.extra.children %}\
|
{% if commit.extra and commit.extra.children %}\
|
||||||
{% for child in commit.extra.children %}
|
{% for child in commit.extra.children %}
|
||||||
{{ " " | safe }}- {% if child.scope %}*({{ child.scope }})* {% endif %}\
|
{{ " " | safe }}- {% if child.extra.mismatch_type %}**{{ child.extra.mismatch_type }}**:{% endif %}{% if child.scope %}*({{ child.scope }})* {% endif %}\
|
||||||
{% if child.breaking %}[**breaking**] {% endif %}\
|
{% if child.breaking %}[**breaking**] {% endif %}\
|
||||||
{{ child.message | upper_first }} - \
|
{{ child.message | upper_first }} - \
|
||||||
([{{ child.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ child.id }}))\
|
([{{ child.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ child.id }}))\
|
||||||
|
|||||||
Reference in New Issue
Block a user