Skip to content

Commit

Permalink
Defaulting to CHANGELOG.md if no output given
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Jul 12, 2017
1 parent 5798278 commit 8dcd412
Show file tree
Hide file tree
Showing 13 changed files with 125 additions and 2 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ Changelog of Git Changelog Maven plugin.
## Unreleased
### No issue

**Defaulting to CHANGELOG.md if no output given**


[d6e65ae5593fa53](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/d6e65ae5593fa53) Tomas Bjerre *2017-07-12 18:48:57*


## 1.46
### No issue

**Reading file parameter correctly**


[b2fdb96a8929d98](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/b2fdb96a8929d98) Tomas Bjerre *2017-07-12 18:08:20*

**doc**


Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Here is and example that will generate a CHANGELOG.md.
<plugin>
<groupId>se.bjurr.gitchangelog</groupId>
<artifactId>git-changelog-maven-plugin</artifactId>
<version>1.45</version>
<version>1.46</version>
<executions>
<execution>
<id>GenerateGitChangelog</id>
Expand Down
14 changes: 14 additions & 0 deletions git-changelog-maven-plugin-example/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ Changelog of Git Changelog Maven plugin.
## Unreleased
### No issue

**Defaulting to CHANGELOG.md if no output given**


[d6e65ae5593fa53](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/d6e65ae5593fa53) Tomas Bjerre *2017-07-12 18:48:57*


## 1.46
### No issue

**Reading file parameter correctly**


[b2fdb96a8929d98](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/b2fdb96a8929d98) Tomas Bjerre *2017-07-12 18:08:20*

**doc**


Expand Down
8 changes: 8 additions & 0 deletions git-changelog-maven-plugin-example/CHANGELOG_custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ Changelog of Git Changelog Maven plugin.

## Unreleased
### No issue /
Defaulting to CHANGELOG.md if no output given



## git-changelog-maven-plugin-1.46
### No issue /
Reading file parameter correctly

doc


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ Changelog of Git Changelog Maven plugin.

## Unreleased
### No issue
Defaulting to CHANGELOG.md if no output given *2017-07-12 18:48:57*



## git-changelog-maven-plugin-1.46
### No issue
Reading file parameter correctly *2017-07-12 18:08:20*

doc *2017-07-09 19:51:59*


Expand Down
12 changes: 12 additions & 0 deletions git-changelog-maven-plugin-example/CHANGELOG_inline.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ Changelog of Git Changelog Maven plugin.
## Unreleased
### No issue

[d6e65ae5593fa53](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/d6e65ae5593fa53) Tomas Bjerre *2017-07-12 18:48:57*

Defaulting to CHANGELOG.md if no output given


## git-changelog-maven-plugin-1.46
### No issue

[b2fdb96a8929d98](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/b2fdb96a8929d98) Tomas Bjerre *2017-07-12 18:08:20*

Reading file parameter correctly

[6afaf9eaec53f64](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/6afaf9eaec53f64) Tomas Bjerre *2017-07-09 19:51:59*

doc
Expand Down
14 changes: 14 additions & 0 deletions git-changelog-maven-plugin-example/CHANGELOG_jira.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ Changelog of Git Changelog Maven plugin.
## Unreleased
### No issue

**Defaulting to CHANGELOG.md if no output given**


[d6e65ae5593fa53](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/d6e65ae5593fa53) Tomas Bjerre *2017-07-12 18:48:57*


## 1.46
### No issue

**Reading file parameter correctly**


[b2fdb96a8929d98](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/b2fdb96a8929d98) Tomas Bjerre *2017-07-12 18:08:20*

**doc**


Expand Down
14 changes: 14 additions & 0 deletions git-changelog-maven-plugin-example/CHANGELOG_minimal.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ Changelog of Git Changelog Maven plugin.
## Unreleased
### No issue

**Defaulting to CHANGELOG.md if no output given**


[d6e65ae5593fa53](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/d6e65ae5593fa53) Tomas Bjerre *2017-07-12 18:48:57*


## git-changelog-maven-plugin-1.46
### No issue

**Reading file parameter correctly**


[b2fdb96a8929d98](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/b2fdb96a8929d98) Tomas Bjerre *2017-07-12 18:08:20*

**doc**


Expand Down
4 changes: 4 additions & 0 deletions git-changelog-maven-plugin-example/CHANGELOG_mixed.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Fix fromCommit and fromRef property typo *21:11:26*


### These commits have not issue in their commit comment
Defaulting to CHANGELOG.md if no output given *18:48:57*

Reading file parameter correctly *18:08:20*

doc *19:51:59*

ignoreCommitsOlderThan *06:45:33*
Expand Down
14 changes: 14 additions & 0 deletions git-changelog-maven-plugin-example/CHANGELOG_settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ Changelog of Git Changelog Maven plugin.
## Next release
### Other changes

**Defaulting to CHANGELOG.md if no output given**


[d6e65ae5593fa53](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/d6e65ae5593fa53) Tomas Bjerre *2017-07-12 18:48:57*


## 1.46
### Other changes

**Reading file parameter correctly**


[b2fdb96a8929d98](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/b2fdb96a8929d98) Tomas Bjerre *2017-07-12 18:08:20*

**doc**


Expand Down
14 changes: 14 additions & 0 deletions git-changelog-maven-plugin-example/CHANGELOG_templatefile.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ Changelog of Git Changelog Maven plugin.
## Unreleased
### No issue

**Defaulting to CHANGELOG.md if no output given**


[d6e65ae5593fa53](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/d6e65ae5593fa53) Tomas Bjerre *2017-07-12 18:48:57*


## 1.46
### No issue

**Reading file parameter correctly**


[b2fdb96a8929d98](https://github.com/tomasbjerre/git-changelog-maven-plugin/commit/b2fdb96a8929d98) Tomas Bjerre *2017-07-12 18:08:20*

**doc**


Expand Down
2 changes: 1 addition & 1 deletion git-changelog-maven-plugin-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<plugin>
<groupId>se.bjurr.gitchangelog</groupId>
<artifactId>git-changelog-maven-plugin</artifactId>
<version>1.46-SNAPSHOT</version>
<version>1.47-SNAPSHOT</version>
<executions>
<!-- Minimal config // -->
<execution>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

@Mojo(name = "git-changelog", defaultPhase = PROCESS_SOURCES)
public class GitChangelogMojo extends AbstractMojo {
private static final String DEFAULT_FILE = "CHANGELOG.md";

@Parameter(property = "toRef", required = false)
private String toRef;

Expand Down Expand Up @@ -214,6 +216,11 @@ public void execute() throws MojoExecutionException {
builder.withJiraServer(jiraServer);
}

if (file == null && !isSupplied(mediaWikiUrl)) {
getLog().info("No output set, using file " + DEFAULT_FILE);
file = new File(DEFAULT_FILE);
}

if (file != null) {
builder.toFile(file);
getLog().info("#");
Expand Down

0 comments on commit 8dcd412

Please sign in to comment.