From 46a87907eaa4bdf48c9c5e581cd0a9877145f262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Thu, 23 Apr 2020 17:54:33 +0200 Subject: [PATCH] fix: Use actual URL for references --- src/git_changelog/templates/keepachangelog/commit.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/git_changelog/templates/keepachangelog/commit.md b/src/git_changelog/templates/keepachangelog/commit.md index 97ddc10..f308d52 100644 --- a/src/git_changelog/templates/keepachangelog/commit.md +++ b/src/git_changelog/templates/keepachangelog/commit.md @@ -1,4 +1,4 @@ - {{ commit.style.subject|default(commit.subject)|capitalize }} ([{{ commit.hash|truncate(7, True, '') }}]({{ commit.url }}) by {{ commit.author_name }}). {%- if commit.text_refs.issues_not_in_subject %} Related issues/PRs: {% for issue in commit.text_refs.issues_not_in_subject -%} -{{ issue.ref }}{% if not loop.last %}, {% endif -%} -{%- endfor -%}{%- endif -%} \ No newline at end of file +{% if issue.url %}[{{ issue.ref }}]({{ issue.url }}){%else %}{{ issue.ref }}{% endif %}{% if not loop.last %}, {% endif -%} +{%- endfor -%}{%- endif -%}