Skip to content

Commit

Permalink
Add auto-changelog template file to be used directly from the reposit…
Browse files Browse the repository at this point in the history
…ory (#583)
  • Loading branch information
ruzickap authored and webpro committed Jan 11, 2020
1 parent 47548b5 commit fd67e6c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/recipes/auto-changelog.md
Expand Up @@ -45,3 +45,17 @@ unreleased tag:
{{/if}}
{{/each}}
```

You can also use the template above [changelog-compact-template.hbs](./changelog-compact-template.hbs)
directly from the URL:

```json
{
"hooks": {
"before:release": "npx auto-changelog -p"
},
"git": {
"changelog": "npx auto-changelog --stdout --commit-limit false --unreleased --template https://raw.githubusercontent.com/release-it/release-it/master/docs/recipes/changelog-compact-template.hbs"
}
}
```
13 changes: 13 additions & 0 deletions docs/recipes/changelog-compact-template.hbs
@@ -0,0 +1,13 @@
{{#each releases}}
{{#if @first}}
{{#each merges}}
- {{{message}}}{{#if href}} [`#{{id}}`]({{href}}){{/if}}
{{/each}}
{{#each fixes}}
- {{{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}}
{{/if}}
{{/each}}

0 comments on commit fd67e6c

Please sign in to comment.