chore: changelog: fix incorrect version URLs

This commit is contained in:
ThetaDev 2024-04-11 13:25:47 +02:00
parent b8825f9199
commit 97b6f07399
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6
5 changed files with 10 additions and 9 deletions

View file

@ -16,10 +16,11 @@ All notable changes to this project will be documented in this file.\n
body = """
{% set repo_url = "https://code.thetadev.de/ThetaDev/rustypipe" %}\
{% if version %}\
{%set vname = version | split(pat="/") | last %}
{%if previous.version %}\
## [{{ version }}]({{ repo_url }}/compare/{{ previous.version }}..{{ version }})\
## [{{ vname }}]({{ repo_url }}/compare/{{ previous.version }}..{{ version }})\
{% else %}\
## {{ version }}\
## [{{ vname }}]({{ repo_url }}/commits/tag/{{ version }})\
{% endif %} - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## [unreleased]