Skip to content

Commit db6e952

Browse files
committed
feat: add ignoreTagsIfNameMatches to semantic-version (refs #49)
1 parent 964e108 commit db6e952

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/se/bjurr/gitchangelog/plugin/SemanticVersionMojo.java

+6
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ public class SemanticVersionMojo extends AbstractMojo {
3333
@Parameter(property = "semanticPatchVersionPattern", required = false)
3434
private String semanticPatchVersionPattern;
3535

36+
@Parameter(property = "ignoreTagsIfNameMatches", required = false)
37+
private String ignoreTagsIfNameMatches;
38+
3639
@Override
3740
public void execute() throws MojoExecutionException {
3841
try {
@@ -46,6 +49,9 @@ public void execute() throws MojoExecutionException {
4649
if (this.isSupplied(this.semanticPatchVersionPattern)) {
4750
gitChangelogApiBuilder.withSemanticPatchVersionPattern(this.semanticPatchVersionPattern);
4851
}
52+
if (this.isSupplied(this.ignoreTagsIfNameMatches)) {
53+
gitChangelogApiBuilder.withIgnoreTagsIfNameMatches(this.ignoreTagsIfNameMatches);
54+
}
4955
final SemanticVersion nextSemanticVersion = gitChangelogApiBuilder.getNextSemanticVersion();
5056
final String nextVersion =
5157
this.updatePomWithNextSemanticVersionSuffixSnapshot

0 commit comments

Comments
 (0)