Skip to content

Commit

Permalink
fix(changelog): do not skip all tags when skip_tags is empty (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Feb 19, 2022
1 parent 761669e commit ff1d981
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions git-cliff/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ pub fn run(mut args: Opt) -> Result<()> {
let mut tags = repository.tags(&config.git.tag_pattern, args.date_order)?;

// Skip tags.
config.git.skip_tags = config.git.skip_tags.filter(|r| !r.as_str().is_empty());
let skip_regex = config.git.skip_tags.as_ref();
let ignore_regex = config.git.ignore_tags.as_ref();
tags = tags
Expand Down

0 comments on commit ff1d981

Please sign in to comment.