Skip to content

Commit

Permalink
Add auto-changelog to generate changelog from commits for each release
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipoliko committed Nov 17, 2018
1 parent f88828d commit 204fdca
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
36 changes: 36 additions & 0 deletions changelog.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Changelog

All notable changes to this project will be documented in this file.

{{#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}}
- {{{message}}} {{#if href}}[`#{{id}}`]({{href}}){{/if}}
{{/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 breaking}}**Breaking change:** {{/if}}{{{subject}}} {{#if href}}[`{{shorthash}}`]({{href}}){{/if}}
{{/commit-list}}

{{/each}}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"dev": "npm run build -- --source-maps --watch",
"start": "node -r source-map-support/register bin/qape.js",
"preversion": "npm test && npm run docs:build && npm run build",
"version": "auto-changelog -t changelog.hbs -p && git add CHANGELOG.md",
"postversion": "git push origin master && git push --tags && npm publish"
},
"bin": {
Expand All @@ -33,6 +34,7 @@
"puppeteer": "1.8.0"
},
"devDependencies": {
"auto-changelog": "^1.10.1",
"babel-cli": "6.26.0",
"babel-plugin-transform-es2015-modules-commonjs": "6.26.2",
"documentation": "8.1.2",
Expand Down

0 comments on commit 204fdca

Please sign in to comment.