From 87e47e68b6154a4da870342e0973123a974cb105 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Mon, 21 Aug 2023 10:11:57 +0300 Subject: [PATCH] fix(informer): do not inform about pre-releases (#249) --- git-cliff/src/lib.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/git-cliff/src/lib.rs b/git-cliff/src/lib.rs index a92a333b08..cf94f57405 100644 --- a/git-cliff/src/lib.rs +++ b/git-cliff/src/lib.rs @@ -44,10 +44,12 @@ fn check_new_version() { pkg_version, ); if let Some(new_version) = informer.check_version().ok().flatten() { - log::info!( - "A new version of {pkg_name} is available: v{pkg_version} -> \ - {new_version}", - ); + if new_version.semver().pre.is_empty() { + log::info!( + "A new version of {pkg_name} is available: v{pkg_version} -> \ + {new_version}", + ); + } } }