From 45c87f2f307e8441c128b81835b662362e6b380a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Sat, 9 Mar 2024 00:33:37 +0100 Subject: [PATCH] fix(changelog): return the last version if there is nothing to bump fixes #533 --- git-cliff-core/src/changelog.rs | 3 ++- git-cliff/src/lib.rs | 30 +++++++++++++++++++++--------- 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/git-cliff-core/src/changelog.rs b/git-cliff-core/src/changelog.rs index 2322d1a..358d7d4 100644 --- a/git-cliff-core/src/changelog.rs +++ b/git-cliff-core/src/changelog.rs @@ -24,7 +24,8 @@ use std::time::{ /// Changelog generator. #[derive(Debug)] pub struct Changelog<'a> { - releases: Vec>, + /// Releases that the changelog will contain. + pub releases: Vec>, body_template: Template, footer_template: Option