We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb9b6bd commit c4f0d28Copy full SHA for c4f0d28
1 file changed
git-cliff/src/lib.rs
@@ -722,6 +722,14 @@ pub fn run_with_changelog_modifier(
722
} else {
723
return Ok(());
724
};
725
+ if let Some(tag_pattern) = &config.git.tag_pattern {
726
+ if !tag_pattern.is_match(&next_version) {
727
+ return Err(Error::ChangelogError(format!(
728
+ "Next version ({}) does not match the tag pattern: {}",
729
+ next_version, tag_pattern
730
+ )));
731
+ }
732
733
if args.bumped_version {
734
writeln!(out, "{next_version}")?;
735
0 commit comments