fix(docs): git-cliff template add null check
All checks were successful
Rust / build (push) Successful in 1m9s
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful

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 %}\