Skip to content

Commit 35b7fd8

Browse files
authored
fix(args): support using use_branch_tags from both config and args (#848)
1 parent 2a581a8 commit 35b7fd8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

git-cliff/src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,13 @@ pub fn run(mut args: Opt) -> Result<()> {
464464
args.topo_order = topo_order;
465465
}
466466
}
467+
468+
if !args.use_branch_tags {
469+
if let Some(use_branch_tags) = config.git.use_branch_tags {
470+
args.use_branch_tags = use_branch_tags;
471+
}
472+
}
473+
467474
if args.github_token.is_some() {
468475
config.remote.github.token.clone_from(&args.github_token);
469476
}

0 commit comments

Comments
 (0)