-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathchangelog-template.hbs
38 lines (31 loc) · 1.33 KB
/
changelog-template.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
### Changelog
All notable changes to this project will be documented in this file.
{{#each releases}}
{{#if href}}
## [{{title}}]({{href}})
{{else}}
## {{title}}
{{/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}} --}}
{{! List commits with `Breaking change: ` somewhere in the message }}
{{#commit-list commits heading='### Breaking Changes' message='Breaking change:'}}
- {{subject}} [`{{shorthash}}`]({{href}})
{{/commit-list}}
{{! List commits that add new features, but not those already listed above }}
{{#commit-list commits heading='### New Features' message='[F|f]eat:' exclude='Breaking change:'}}
- {{subject}} [`{{shorthash}}`]({{href}})
{{/commit-list}}
{{! List other commits but not those already listed above }}
{{#commit-list commits heading='### Commits' exclude='[B|b]reaking change:|[F|f]eat:'}}
- {{subject}} [`{{shorthash}}`]({{href}})
{{/commit-list}}
{{/each}}