Skip to content

Commit f2fa658

Browse files
authored
chore: fix git-cliff template (#27)
1 parent f945663 commit f2fa658

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cliff.toml

+5-2
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,21 @@ body = """
1818
{%- for commit in commits %}
1919
{%- if commit.scope -%}
2020
{% else -%}
21-
- {% if commit.breaking %} [**breaking**]{% endif %}\
21+
- {% if commit.breaking %} [**breaking**]{% endif %} \
2222
{{ commit.message }} - ([{{ commit.id | truncate(length=7, end="") }}]($REPO/commit/{{ commit.id }}))
2323
{% endif -%}
2424
{% endfor -%}
2525
{% endfor %}\n
2626
{% if version %}
2727
{% if previous.version %}
28-
**Full Changelog**: $REPO/compare/{{ previous.version }}...{{ version }}
28+
**Full Changelog**: {{ self::remote_url() }}/compare/{{ previous.version }}...{{ version }}
2929
{% endif %}
3030
{% else -%}
3131
{% raw %}\n{% endraw %}
3232
{% endif %}
33+
{%- macro remote_url() -%}
34+
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
35+
{%- endmacro -%}
3336
"""
3437

3538
# remove the leading and trailing whitespace from the template

0 commit comments

Comments
 (0)