From d65aec9d249b3ad941ccfac77c3248d12d3d30d3 Mon Sep 17 00:00:00 2001 From: Marco Napetti <7566389+nappa85@users.noreply.github.com> Date: Fri, 1 Dec 2023 12:06:20 +0100 Subject: [PATCH] fix: allow version bump with a single previous release --- git-cliff/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-cliff/src/lib.rs b/git-cliff/src/lib.rs index 259077a3ba..456f6dcde9 100644 --- a/git-cliff/src/lib.rs +++ b/git-cliff/src/lib.rs @@ -204,7 +204,7 @@ fn process_repository<'a>( } } - if release_index > 1 { + if release_index > 0 { previous_release.previous = None; releases[release_index].previous = Some(Box::new(previous_release)); }