Skip to content

Instantly share code, notes, and snippets.

@atsjj
Last active April 17, 2020 19:22
Show Gist options
  • Save atsjj/de6998d6750a8b32778fa3380da24301 to your computer and use it in GitHub Desktop.
Save atsjj/de6998d6750a8b32778fa3380da24301 to your computer and use it in GitHub Desktop.
auto-changelog-templates
{{#each releases}}
{{#if @first}}
{{#each merges}}
* ({{id}}) {{{message}}}
{{/each}}
{{#each fixes}}
* {{{commit.subject}}}{{#each fixes}} ({{id}}){{/each}}
{{/each}}
{{#each commits}}
* ({{shorthash}}) {{#if breaking}}**Breaking change:** {{/if}}{{{subject}}}
{{/each}}
{{/if}}
{{/each}}
# Changelog
{{#each releases}}
{{#if href}}
## [{{title}}]({{href}}){{#if tag}} ({{isoDate}}){{/if}}
{{else}}
## {{title}}{{#if tag}} ({{isoDate}}){{/if}}
{{/if}}
{{#if summary}}
{{summary}}
{{/if}}
{{#if merges}}
### Merged
{{#each merges}}
* {{#if href}}[`#{{id}}`]({{href}}){{/if}} {{{message}}}
{{/each}}
{{/if}}
{{#if fixes}}
### Fixed
{{#each fixes}}
* {{{commit.subject}}}{{#each fixes}} {{#if href}}[`#{{id}}`]({{href}}){{/if}}{{/each}}
{{/each}}
{{/if}}
{{#commit-list commits heading='### Commits'}}
* {{#if href}}[`{{shorthash}}`]({{href}}){{/if}} {{#if breaking}}**Breaking change:** {{/if}}{{{subject}}}
{{/commit-list}}
{{/each}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment