Skip to content

Commit

Permalink
fix(informer): do not inform about pre-releases (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Aug 21, 2023
1 parent 7a82aa1 commit 87e47e6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions git-cliff/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
);
}
}
}

Expand Down

0 comments on commit 87e47e6

Please sign in to comment.