mirror of
https://github.com/orhun/git-cliff.git
synced 2024-10-05 19:27:27 +03:00
chore(changelog): disable the default behavior of next-version (#343)
This commit is contained in:
parent
25e23ed2a6
commit
4eef684c56
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -1359,9 +1359,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "next_version"
|
||||
version = "0.2.11"
|
||||
version = "0.2.12"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "87123da34f21d6929330bda98d0e7a3503d54bf9c059e769071d0ba493962436"
|
||||
checksum = "4cdfb2659ce2e07a6974e94cf6b9dbab569deb04363307fd0cf7d5374d4d33d6"
|
||||
dependencies = [
|
||||
"conventional_commit_parser",
|
||||
"semver",
|
||||
|
@ -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 = [
|
||||
|
@ -7,7 +7,7 @@ use crate::github::{
|
||||
GitHubPullRequest,
|
||||
GitHubReleaseMetadata,
|
||||
};
|
||||
use next_version::NextVersion;
|
||||
use next_version::VersionUpdater;
|
||||
use semver::Version;
|
||||
use serde::{
|
||||
Deserialize,
|
||||
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user