Skip to content

Commit c718f71

Browse files
committed
Lib 1.40 can ignore tags by regexp
1 parent d943c86 commit c718f71

12 files changed

+87
-61
lines changed

CHANGELOG.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,19 @@ Changelog of Git Changelog Maven plugin.
55
## Unreleased
66
### No issue
77

8+
**Updating example**
9+
10+
11+
[d943c8649c0e679](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/d943c8649c0e679) Tomas Bjerre *2016-03-20 09:48:23*
12+
13+
14+
## 1.23
15+
### No issue
16+
817
**Lib 1.39**
918

1019

11-
[fe856d84217860b](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/fe856d84217860b) Tomas Bjerre *2016-03-20 09:46:00*
20+
[47df7e7975cc4de](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/47df7e7975cc4de) Tomas Bjerre *2016-03-20 09:46:15*
1221

1322
**Updating example**
1423

git-changelog-maven-plugin-example/CHANGELOG.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,19 @@ Changelog of Git Changelog Maven plugin.
55
## Unreleased
66
### No issue
77

8+
**Updating example**
9+
10+
11+
[d943c8649c0e679](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/d943c8649c0e679) Tomas Bjerre *2016-03-20 09:48:23*
12+
13+
14+
## 1.23
15+
### No issue
16+
817
**Lib 1.39**
918

1019

11-
[fe856d84217860b](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/fe856d84217860b) Tomas Bjerre *2016-03-20 09:46:00*
20+
[47df7e7975cc4de](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/47df7e7975cc4de) Tomas Bjerre *2016-03-20 09:46:15*
1221

1322
**Updating example**
1423

git-changelog-maven-plugin-example/CHANGELOG_custom.md

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
Changelog of Git Changelog Maven plugin.
44

55
## Unreleased
6+
### No issue /
7+
Updating example
8+
9+
10+
11+
## git-changelog-maven-plugin-1.23
612
### No issue /
713
Lib 1.39
814

git-changelog-maven-plugin-example/CHANGELOG_inline.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,15 @@ Changelog of Git Changelog Maven plugin.
55
## Unreleased
66
### No issue
77

8-
[fe856d84217860b](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/fe856d84217860b) Tomas Bjerre *2016-03-20 09:46:00*
8+
[d943c8649c0e679](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/d943c8649c0e679) Tomas Bjerre *2016-03-20 09:48:23*
9+
10+
Updating example
11+
12+
13+
## git-changelog-maven-plugin-1.23
14+
### No issue
15+
16+
[47df7e7975cc4de](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/47df7e7975cc4de) Tomas Bjerre *2016-03-20 09:46:15*
917

1018
Lib 1.39
1119

git-changelog-maven-plugin-example/CHANGELOG_jira.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,19 @@ Changelog of Git Changelog Maven plugin.
55
## Unreleased
66
### No issue
77

8+
**Updating example**
9+
10+
11+
[d943c8649c0e679](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/d943c8649c0e679) Tomas Bjerre *2016-03-20 09:48:23*
12+
13+
14+
## 1.23
15+
### No issue
16+
817
**Lib 1.39**
918

1019

11-
[fe856d84217860b](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/fe856d84217860b) Tomas Bjerre *2016-03-20 09:46:00*
20+
[47df7e7975cc4de](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/47df7e7975cc4de) Tomas Bjerre *2016-03-20 09:46:15*
1221

1322
**Updating example**
1423

git-changelog-maven-plugin-example/CHANGELOG_minimal.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,19 @@ Changelog of Git Changelog Maven plugin.
55
## Unreleased
66
### No issue
77

8+
**Updating example**
9+
10+
11+
[d943c8649c0e679](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/d943c8649c0e679) Tomas Bjerre *2016-03-20 09:48:23*
12+
13+
14+
## git-changelog-maven-plugin-1.23
15+
### No issue
16+
817
**Lib 1.39**
918

1019

11-
[fe856d84217860b](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/fe856d84217860b) Tomas Bjerre *2016-03-20 09:46:00*
20+
[47df7e7975cc4de](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/47df7e7975cc4de) Tomas Bjerre *2016-03-20 09:46:15*
1221

1322
**Updating example**
1423

git-changelog-maven-plugin-example/CHANGELOG_mixed.md

+3-53
Original file line numberDiff line numberDiff line change
@@ -4,40 +4,26 @@ Changelog of Git Changelog Maven plugin.
44

55
## These commits are not included in any tag
66
### These commits have not issue in their commit comment
7-
Lib 1.39 *09:46:00*
8-
9-
Updating example *08:46:55*
7+
Updating example *09:48:23*
108

9+
Lib 1.39 *09:46:15*
1110

11+
Updating example *08:46:55*
1212

13-
## 1.22
14-
### These commits have not issue in their commit comment
1513
Lib 1.38 *08:43:15*
1614

1715
Updating README *16:12:21*
1816

19-
20-
21-
## 1.21
22-
### These commits have not issue in their commit comment
2317
Jira integration to get titles *16:09:27*
2418

2519
Update example *21:16:30*
2620

27-
28-
29-
## 1.20
30-
### These commits have not issue in their commit comment
3121
Support GitHub OAuth2 tokens #6 *20:38:16*
3222

3323
Adding example with github as custom issue *16:16:05*
3424

3525
Updating CHANGELOG.md *08:52:37*
3626

37-
38-
39-
## 1.19
40-
### These commits have not issue in their commit comment
4127
Supplying commit in each issue mentioned in message *08:49:31*
4228

4329
Updating CHANGELOG.md *18:23:16*
@@ -46,42 +32,22 @@ Changelog of Git Changelog Maven plugin.
4632

4733
Updating CHANGELOG.md *18:00:16*
4834

49-
50-
51-
## 1.18
52-
### These commits have not issue in their commit comment
5335
Lib 1.29 *17:58:28*
5436

55-
56-
57-
## 1.17
58-
### These commits have not issue in their commit comment
5937
Lib 1.28, performance optimizations *16:57:24*
6038

6139
Updating CHANGELOG.md *09:20:43*
6240

63-
64-
65-
## 1.16
66-
### These commits have not issue in their commit comment
6741
Significant performance improvements
6842

6943
* Using lib 1.27. *09:05:15*
7044

7145
Updating example *18:19:16*
7246

73-
74-
75-
## 1.15
76-
### These commits have not issue in their commit comment
7747
Using lib 1.25 and updating README.md *17:53:32*
7848

7949
Updating docs after release *19:30:25*
8050

81-
82-
83-
## 1.14
84-
### These commits have not issue in their commit comment
8551
Added variables: messageTitle, messageBody, messageItems #5 *19:26:45*
8652

8753
Adding example of custom issue without link
@@ -92,10 +58,6 @@ Changelog of Git Changelog Maven plugin.
9258

9359
Updating README.md after release *19:19:40*
9460

95-
96-
97-
## 1.13
98-
### These commits have not issue in their commit comment
9961
Implementing custom issues
10062

10163
* Adding example with
@@ -104,20 +66,12 @@ Changelog of Git Changelog Maven plugin.
10466

10567
Updagint README.md after release *11:14:02*
10668

107-
108-
109-
## 1.12
110-
### These commits have not issue in their commit comment
11169
Using lib 1.23 to sort commits by time, not formatted time #4 *11:10:56*
11270

11371
Correcting example ignoring commits by comment *09:30:03*
11472

11573
Updating README.md after release *07:36:20*
11674

117-
118-
119-
## 1.11
120-
### These commits have not issue in their commit comment
12175
Documentation and more configuration available in pom #3 *07:15:44*
12276

12377
Using lib 1.22 *17:36:44*
@@ -126,10 +80,6 @@ Changelog of Git Changelog Maven plugin.
12680

12781
Using lib 1.19 *18:46:14*
12882

129-
130-
131-
## 1.10
132-
### These commits have not issue in their commit comment
13383
Template can be configured directly in the pom #2 *17:29:26*
13484

13585
Using lib 1.18 *17:11:56*

git-changelog-maven-plugin-example/CHANGELOG_settings.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,19 @@ Changelog of Git Changelog Maven plugin.
55
## Next release
66
### Other changes
77

8+
**Updating example**
9+
10+
11+
[d943c8649c0e679](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/d943c8649c0e679) Tomas Bjerre *2016-03-20 09:48:23*
12+
13+
14+
## 1.23
15+
### Other changes
16+
817
**Lib 1.39**
918

1019

11-
[fe856d84217860b](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/fe856d84217860b) Tomas Bjerre *2016-03-20 09:46:00*
20+
[47df7e7975cc4de](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/47df7e7975cc4de) Tomas Bjerre *2016-03-20 09:46:15*
1221

1322
**Updating example**
1423

git-changelog-maven-plugin-example/CHANGELOG_templatefile.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,19 @@ Changelog of Git Changelog Maven plugin.
55
## Unreleased
66
### No issue
77

8+
**Updating example**
9+
10+
11+
[d943c8649c0e679](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/d943c8649c0e679) Tomas Bjerre *2016-03-20 09:48:23*
12+
13+
14+
## 1.23
15+
### No issue
16+
817
**Lib 1.39**
918

1019

11-
[fe856d84217860b](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/fe856d84217860b) Tomas Bjerre *2016-03-20 09:46:00*
20+
[47df7e7975cc4de](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/47df7e7975cc4de) Tomas Bjerre *2016-03-20 09:46:15*
1221

1322
**Updating example**
1423

git-changelog-maven-plugin-example/pom.xml

+3
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ Changelog of Git Changelog Maven plugin.
215215
issue in the comment. -->
216216
<removeIssueFromMessage>false</removeIssueFromMessage>
217217
<ignoreCommitsIfMessageMatches>^\[maven-release-plugin\].*</ignoreCommitsIfMessageMatches>
218+
<!-- Can be used to ignore release candidates, and only include actual
219+
releases. -->
220+
<ignoreTagsIfNameMatches>.*[0-9]{2}$</ignoreTagsIfNameMatches>
218221
<untaggedName>These commits are not included in any tag</untaggedName>
219222
<noIssueName>These commits have not issue in their commit comment</noIssueName>
220223
<templateContent>

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
<dependency>
7070
<groupId>se.bjurr.gitchangelog</groupId>
7171
<artifactId>git-changelog-lib</artifactId>
72-
<version>1.39</version>
72+
<version>1.40</version>
7373
</dependency>
7474
</dependencies>
7575

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

+5
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ public class GitChangelogMojo extends AbstractMojo {
4646

4747
@Parameter(property = "readableTagName", required = false)
4848
private String readableTagName;
49+
@Parameter(property = "ignoreTagsIfNameMatches", required = false)
50+
private String ignoreTagsIfNameMatches;
4951
@Parameter(property = "dateFormat", required = false)
5052
private String dateFormat;
5153
@Parameter(property = "timeZone", required = false)
@@ -111,6 +113,9 @@ public void execute() throws MojoExecutionException {
111113
builder.withToCommit(toCommit);
112114
}
113115

116+
if (isSupplied(ignoreTagsIfNameMatches)) {
117+
builder.withIgnoreTagsIfNameMatches(ignoreTagsIfNameMatches);
118+
}
114119
if (isSupplied(readableTagName)) {
115120
builder.withReadableTagName(readableTagName);
116121
}

0 commit comments

Comments
 (0)