Skip to content

Commit

Permalink
fix: Use actual URL for references
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Apr 23, 2020
1 parent 7f2c3ad commit 46a8790
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/git_changelog/templates/keepachangelog/commit.md
Original file line number Diff line number Diff line change
@@ -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 -%}
{% if issue.url %}[{{ issue.ref }}]({{ issue.url }}){%else %}{{ issue.ref }}{% endif %}{% if not loop.last %}, {% endif -%}
{%- endfor -%}{%- endif -%}

0 comments on commit 46a8790

Please sign in to comment.