Skip to content

Commit

Permalink
fix(changelog): do not skip all tags when skip_tags is empty (#136)
Browse files Browse the repository at this point in the history
This is a regression in 8b17a1f
  • Loading branch information
orhun committed Jan 13, 2023
1 parent 2937f77 commit eee35ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-cliff/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,10 @@ fn check_new_version() {
/// repository individually.
fn process_repository<'a>(
repository: &'static Repository,
mut config: Config,
config: Config,
args: &Opt,
) -> Result<Vec<Release<'a>>> {
let mut tags = repository.tags(&config.git.tag_pattern, args.topo_order)?;
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 Expand Up @@ -317,6 +316,7 @@ pub fn run(mut args: Opt) -> Result<()> {
args.topo_order = topo_order;
}
}
config.git.skip_tags = config.git.skip_tags.filter(|r| !r.as_str().is_empty());

// Process the repository.
let repositories = args.repository.clone().unwrap_or(vec![env::current_dir()?]);
Expand Down

0 comments on commit eee35ad

Please sign in to comment.