File tree 3 files changed +10
-2
lines changed
git-changelog-maven-plugin-example
src/main/java/se/bjurr/gitchangelog/plugin
3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ Changelog of Git Changelog Maven plugin.
5
5
## Unreleased
6
6
### No issue
7
7
8
- [ 4bd2c1d8c72520d ] ( https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/4bd2c1d8c72520d ) Tomas Bjerre * 2022-03-26 05:53:09 *
8
+ [ d22ecc7fee29b2d ] ( https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/d22ecc7fee29b2d ) Tomas Bjerre * 2022-03-26 05:53:50 *
9
9
10
10
[ maven-release-plugin] prepare for next development iteration
11
11
Original file line number Diff line number Diff line change 83
83
<goal >git-changelog</goal >
84
84
</goals >
85
85
<configuration >
86
+ <prependToFile >false</prependToFile >
86
87
<useIntegrations >true</useIntegrations >
87
88
<gitHubEnabled >trye</gitHubEnabled >
88
89
<gitHubIssuePattern >#([0-9]*)</gitHubIssuePattern >
Original file line number Diff line number Diff line change @@ -172,6 +172,9 @@ public class GitChangelogMojo extends AbstractMojo {
172
172
@ Parameter (property = "useIntegrations" , required = false )
173
173
public Boolean useIntegrations ;
174
174
175
+ @ Parameter (property = "prependToFile" , required = false )
176
+ public Boolean prependToFile ;
177
+
175
178
@ Override
176
179
public void execute () throws MojoExecutionException {
177
180
if (this .skip != null && this .skip == true ) {
@@ -338,7 +341,11 @@ public void execute() throws MojoExecutionException {
338
341
}
339
342
340
343
if (this .file != null ) {
341
- builder .toFile (this .file );
344
+ if (this .prependToFile ) {
345
+ builder .prependToFile (this .file );
346
+ } else {
347
+ builder .toFile (this .file );
348
+ }
342
349
this .getLog ().info ("#" );
343
350
this .getLog ().info ("# Wrote: " + this .file );
344
351
this .getLog ().info ("#" );
You can’t perform that action at this time.
0 commit comments