Skip to content

Commit

Permalink
chore: updated auto-changelog configs
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhom committed Dec 22, 2020
1 parent fdf8c4c commit 200b8f3
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .auto-changelog
@@ -1,7 +1,7 @@
{
"template": "./release-template.hbs",
"handlebarsSetup": "./scripts/auto-changelog.js",
"ignoreCommitPattern": "^chore: release v",
"unreleased": true,
"startingVersion": "v3.0.0-alpha.0"
"startingVersion": "v3.0.0-alpha.0",
"unreleased": false,
"commitLimit": false
}
6 changes: 3 additions & 3 deletions .release-it.json
Expand Up @@ -3,11 +3,11 @@
"push": true,
"tagName": "v${version}",
"commitMessage": "chore: release v${version}",
"changelog": "auto-changelog --stdout"
"changelog": "auto-changelog --stdout --unreleased --template ./templates/changelog-template.hbs"
},
"github": {
"release": true,
"releaseNotes": "auto-changelog --stdout -p"
"releaseNotes": "auto-changelog --stdout --unreleased --template ./templates/release-template.hbs"
},
"npm": {
"publish": false
Expand All @@ -18,6 +18,6 @@
}
},
"hooks": {
"after:bump": "auto-changelog -p"
"after:bump": "auto-changelog -p --template ./templates/changelog-template.hbs"
}
}
File renamed without changes.
19 changes: 19 additions & 0 deletions templates/release-template.hbs
@@ -0,0 +1,19 @@
{{#each releases}}
{{#if @first}}
{{#custom merges commits heading="#### Features" subject="feat: "}}
- {{message}} ({{#if id}}[`#{{id}}`]{{else}}[{{shorthash}}]{{/if}}({{href}})).
{{/custom}}

{{#custom merges commits heading="#### Improvements" subject="(chore|refactor|style): "}}
- {{message}} ({{#if id}}[`#{{id}}`]{{else}}[{{shorthash}}]{{/if}}({{href}})).
{{/custom}}

{{#custom merges commits heading="#### Fixes" subject="fix: "}}
- {{message}} ({{#if id}}[`#{{id}}`]{{else}}[{{shorthash}}]{{/if}}({{href}})).
{{/custom}}

{{#custom merges commits heading="#### Documentations" subject="docs: "}}
- {{message}} ({{#if id}}[`#{{id}}`]{{else}}[{{shorthash}}]{{/if}}({{href}})).
{{/custom}}
{{/if}}
{{/each}}

0 comments on commit 200b8f3

Please sign in to comment.