From ba92f23b4105725e02ce4e6d1ee736212f2db0db Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 20 May 2024 09:00:43 +0100 Subject: [PATCH] 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. --- cliff.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cliff.toml b/cliff.toml index 4ea8c74..0a54ee6 100644 --- a/cliff.toml +++ b/cliff.toml @@ -16,7 +16,7 @@ body = """ ## [unreleased] {% endif %}\ {% 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 }})...\ [{{ commit_id | truncate(length=7, end="") }}](https://git.kemitix.net/kemitix/git-next/commit/{{ commit_id }}) {% endif %}\