Skip to content

Commit

Permalink
chore(changelog): disable the default behavior of next-version (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Dec 31, 2023
1 parent 25e23ed commit 4eef684
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion git-cliff-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ tera = "1.19.1"
indexmap = { version = "2.1.0", optional = true }
toml = "0.8.8"
lazy-regex = "3.1.0"
next_version = "0.2.11"
next_version = "0.2.12"
semver = "1.0.20"
document-features = { version = "0.2.8", optional = true }
reqwest = { version = "0.11.23", default-features = false, features = [
Expand Down
9 changes: 6 additions & 3 deletions git-cliff-core/src/release.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::github::{
GitHubPullRequest,
GitHubReleaseMetadata,
};
use next_version::NextVersion;
use next_version::VersionUpdater;
use semver::Version;
use serde::{
Deserialize,
Expand Down Expand Up @@ -113,8 +113,11 @@ impl<'a> Release<'a> {
}
}
}
let next_version = semver?
.next(
let next_version = VersionUpdater::new()
.with_features_always_increment_minor(true)
.with_breaking_always_increment_major(true)
.increment(
&semver?,
self.commits
.iter()
.map(|commit| commit.message.trim_end().to_string())
Expand Down

0 comments on commit 4eef684

Please sign in to comment.