Skip to content

Commit

Permalink
Added: Auto changelog configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
kleber-jg committed Sep 7, 2022
1 parent 2edddca commit 557cdab
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/auto-changelog.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"output": "CHANGELOG.md",
"template": "config/changelog-template.hbs",
"unreleased": true,
"commitLimit": false,
"package": true
}
28 changes: 28 additions & 0 deletions config/changelog-template.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Changelog

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

{{#each releases}}
{{#if href}}
##{{#unless major}}#{{/unless}} [{{title}}]({{href}})
{{else}}
### {{title}}
{{/if}}

> {{niceDate}}

{{#if summary}}
{{summary}}
{{/if}}

{{#each merges}}
- {{#if commit.breaking}}**Breaking change:** {{/if}}{{message}}{{#if href}} [`#{{id}}`]({{href}}){{/if}}
{{/each}}
{{#each fixes}}
- {{#if commit.breaking}}**Breaking change:** {{/if}}{{commit.subject}}{{#each fixes}}{{#if href}} [`#{{id}}`]({{href}}){{/if}}{{/each}}
{{/each}}
{{#each commits}}
- {{#if breaking}}**Breaking change:** {{/if}}{{subject}}{{#if href}} [`{{shorthash}}`]({{href}}){{/if}}
{{/each}}

{{/each}}

0 comments on commit 557cdab

Please sign in to comment.