Skip to content

Commit 8bebbf9

Browse files
authored
fix(bump): suppress template warning when --bumped-version is used (#855)
1 parent 4956fc7 commit 8bebbf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-cliff/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ pub fn run(mut args: Opt) -> Result<()> {
418418
}
419419
EmbeddedConfig::parse()?
420420
};
421-
if config.changelog.body.is_none() && !args.context {
421+
if config.changelog.body.is_none() && !args.context && !args.bumped_version {
422422
warn!("Changelog body is not specified, using the default template.");
423423
config.changelog.body = EmbeddedConfig::parse()?.changelog.body;
424424
}

0 commit comments

Comments
 (0)