Skip to content

Instantly share code, notes, and snippets.

@atsjj

atsjj/compact.hbs

Last active Apr 17, 2020
Embed
What would you like to do?
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
You can’t perform that action at this time.