Skip to content

Commit

Permalink
feat: fewer empty rows in default template
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Aug 1, 2022
1 parent 7fde2a4 commit 26f5c16
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 239 deletions.
11 changes: 4 additions & 7 deletions src/main/resources/changelog.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ Changelog of {{repoName}}.
- {{#eachCommitScope .}} **{{.}}** {{/eachCommitScope}} {{{commitDescription .}}} ([{{subString hash 0 5}}](https://github.com/{{ownerName}}/{{repoName}}/commit/{{hash}}) {{authorName}}) {{#eachCommitRefs .}}{{#ifMatches . "^#[0-9]+"}} [{{.}}](https://github.com/{{ownerName}}/{{repoName}}/issues/{{subString . 1}}) {{/ifMatches}}{{/eachCommitRefs}} {{#eachCommitFixes .}}{{#ifMatches . "^#[0-9]+"}} [{{.}}](https://github.com/{{ownerName}}/{{repoName}}/issues/{{subString . 1}}) {{/ifMatches}}{{/eachCommitFixes}}
{{/ifCommitBreaking}}
{{/commits}}
{{/ifContainsBreaking}}


{{/ifContainsBreaking}}
{{#ifContainsType commits type='feat'}}
### Features

Expand All @@ -25,9 +24,8 @@ Changelog of {{repoName}}.
- {{#eachCommitScope .}} **{{.}}** {{/eachCommitScope}} {{{commitDescription .}}} ([{{subString hash 0 5}}](https://github.com/{{ownerName}}/{{repoName}}/commit/{{hash}}) {{authorName}}) {{#eachCommitRefs .}}{{#ifMatches . "^#[0-9]+"}} [{{.}}](https://github.com/{{ownerName}}/{{repoName}}/issues/{{subString . 1}}) {{/ifMatches}}{{/eachCommitRefs}} {{#eachCommitFixes .}}{{#ifMatches . "^#[0-9]+"}} [{{.}}](https://github.com/{{ownerName}}/{{repoName}}/issues/{{subString . 1}}) {{/ifMatches}}{{/eachCommitFixes}}
{{/ifCommitType}}
{{/commits}}
{{/ifContainsType}}


{{/ifContainsType}}
{{#ifContainsType commits type='fix'}}
### Bug Fixes

Expand All @@ -36,9 +34,8 @@ Changelog of {{repoName}}.
- {{#eachCommitScope .}} **{{.}}** {{/eachCommitScope}} {{{commitDescription .}}} ([{{subString hash 0 5}}](https://github.com/{{ownerName}}/{{repoName}}/commit/{{hash}}) {{authorName}}) {{#eachCommitRefs .}}{{#ifMatches . "^#[0-9]+"}} [{{.}}](https://github.com/{{ownerName}}/{{repoName}}/issues/{{subString . 1}}) {{/ifMatches}}{{/eachCommitRefs}} {{#eachCommitFixes .}}{{#ifMatches . "^#[0-9]+"}} [{{.}}](https://github.com/{{ownerName}}/{{repoName}}/issues/{{subString . 1}}) {{/ifMatches}}{{/eachCommitFixes}}
{{/ifCommitType}}
{{/commits}}
{{/ifContainsType}}


{{/ifContainsType}}
{{#ifContainsType commits type='^($|(?!fix|feat|breaking))'}}
### Other changes

Expand All @@ -54,7 +51,7 @@ Changelog of {{repoName}}.

{{/ifCommitType}}
{{/commits}}
{{/ifContainsType}}

{{/ifContainsType}}
{{/ifEquals}}
{{/tags}}
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ Changelog of {{repoName}}.
- {{#eachCommitScope .}} **{{.}}** {{/eachCommitScope}} {{{commitDescription .}}} ([{{subString hash 0 5}}](https://github.com/{{ownerName}}/{{repoName}}/commit/{{hash}}) {{authorName}}) {{#eachCommitRefs .}}{{#ifMatches . "^#[0-9]+"}} [{{.}}](https://github.com/{{ownerName}}/{{repoName}}/issues/{{subString . 1}}) {{/ifMatches}}{{/eachCommitRefs}} {{#eachCommitFixes .}}{{#ifMatches . "^#[0-9]+"}} [{{.}}](https://github.com/{{ownerName}}/{{repoName}}/issues/{{subString . 1}}) {{/ifMatches}}{{/eachCommitFixes}}
{{/ifCommitBreaking}}
{{/commits}}
{{/ifContainsBreaking}}


{{/ifContainsBreaking}}
{{#ifContainsType commits type='feat'}}
### Features

Expand All @@ -27,9 +26,8 @@ Changelog of {{repoName}}.
- {{#eachCommitScope .}} **{{.}}** {{/eachCommitScope}} {{{commitDescription .}}} ([{{subString hash 0 5}}](https://github.com/{{ownerName}}/{{repoName}}/commit/{{hash}}) {{authorName}}) {{#eachCommitRefs .}}{{#ifMatches . "^#[0-9]+"}} [{{.}}](https://github.com/{{ownerName}}/{{repoName}}/issues/{{subString . 1}}) {{/ifMatches}}{{/eachCommitRefs}} {{#eachCommitFixes .}}{{#ifMatches . "^#[0-9]+"}} [{{.}}](https://github.com/{{ownerName}}/{{repoName}}/issues/{{subString . 1}}) {{/ifMatches}}{{/eachCommitFixes}}
{{/ifCommitType}}
{{/commits}}
{{/ifContainsType}}


{{/ifContainsType}}
{{#ifContainsType commits type='fix'}}
### Bug Fixes

Expand All @@ -38,9 +36,8 @@ Changelog of {{repoName}}.
- {{#eachCommitScope .}} **{{.}}** {{/eachCommitScope}} {{{commitDescription .}}} ([{{subString hash 0 5}}](https://github.com/{{ownerName}}/{{repoName}}/commit/{{hash}}) {{authorName}}) {{#eachCommitRefs .}}{{#ifMatches . "^#[0-9]+"}} [{{.}}](https://github.com/{{ownerName}}/{{repoName}}/issues/{{subString . 1}}) {{/ifMatches}}{{/eachCommitRefs}} {{#eachCommitFixes .}}{{#ifMatches . "^#[0-9]+"}} [{{.}}](https://github.com/{{ownerName}}/{{repoName}}/issues/{{subString . 1}}) {{/ifMatches}}{{/eachCommitFixes}}
{{/ifCommitType}}
{{/commits}}
{{/ifContainsType}}


{{/ifContainsType}}
{{#ifContainsType commits type='^($|(?!fix|feat|breaking))'}}
### Other changes

Expand All @@ -56,8 +53,8 @@ Changelog of {{repoName}}.

{{/ifCommitType}}
{{/commits}}
{{/ifContainsType}}

{{/ifContainsType}}
{{/ifEquals}}
{{/tags}}

Expand Down Expand Up @@ -90,12 +87,6 @@ Changelog of git-changelog-lib.

## 0.0.1 (2015-11-12)







### Other changes

**Initial commit**
Expand Down

0 comments on commit 26f5c16

Please sign in to comment.