fix(docs): git-cliff template add null check

Template checked that previous.commit_id existed but not that the
current commit_id existed. Not sure what caused that to be null.
This commit is contained in:
Paul Campbell 2024-05-20 09:00:43 +01:00
parent 692a860f6c
commit ba92f23b41

View file

@ -16,7 +16,7 @@ body = """
## [unreleased] ## [unreleased]
{% endif %}\ {% endif %}\
{% if previous %}\ {% if previous %}\
{% if previous.commit_id %} {% if previous.commit_id and commit_id %}
[{{ previous.commit_id | truncate(length=7, end="") }}](https://git.kemitix.net/kemitix/git-next/commit/{{ previous.commit_id }})...\ [{{ previous.commit_id | truncate(length=7, end="") }}](https://git.kemitix.net/kemitix/git-next/commit/{{ previous.commit_id }})...\
[{{ commit_id | truncate(length=7, end="") }}](https://git.kemitix.net/kemitix/git-next/commit/{{ commit_id }}) [{{ commit_id | truncate(length=7, end="") }}](https://git.kemitix.net/kemitix/git-next/commit/{{ commit_id }})
{% endif %}\ {% endif %}\