chore: updated auto-changelog configs

This commit is contained in:
Mo Gorhom
2020-12-22 16:47:45 +01:00
parent ebfad4c52d
commit b09910b398
4 changed files with 59 additions and 3 deletions

7
.auto-changelog Normal file
View File

@@ -0,0 +1,7 @@
{
"handlebarsSetup": "./scripts/auto-changelog.js",
"ignoreCommitPattern": "^chore: release v",
"tagPattern": "^v(0|1|2)+\\.\\d+\\.\\d+$",
"unreleased": false,
"commitLimit": false
}

View File

@@ -3,11 +3,11 @@
"push": true,
"tagName": "v${version}",
"commitMessage": "chore: release v${version}",
"changelog": "auto-changelog --stdout --commit-limit false --ignore-commit-pattern \"^chore: release v\" --unreleased --template ./release-template.hbs --tag-pattern \"^v\\d+\\.\\d+\\.\\d+$\" --handlebars-setup ./scripts/auto-changelog.js"
"changelog": "auto-changelog --stdout --unreleased --template ./templates/changelog-template.hbs"
},
"github": {
"release": true,
"releaseNotes": "auto-changelog --stdout --commit-limit false --ignore-commit-pattern \"^chore: release v\" --unreleased --template ./release-template.hbs --tag-pattern \"^v\\d+\\.\\d+\\.\\d+$\" --handlebars-setup ./scripts/auto-changelog.js"
"releaseNotes": "auto-changelog --stdout --template ./templates/release-template.hbs"
},
"npm": {
"publish": false
@@ -18,6 +18,6 @@
}
},
"hooks": {
"after:bump": "auto-changelog -p --ignore-commit-pattern \"^chore: release v\" --template ./release-template.hbs --tag-pattern \"^v\\d+\\.\\d+\\.\\d+$\" --handlebars-setup ./scripts/auto-changelog.js"
"after:bump": "auto-changelog -p --template ./templates/changelog-template.hbs"
}
}

View File

@@ -0,0 +1,30 @@
# Changelog
{{#each releases}}
{{#if href}}
## [{{title}}]({{href}}){{#if tag}} - {{isoDate}}{{/if}}
{{else}}
## {{title}}{{#if tag}} - {{isoDate}}{{/if}}
{{/if}}
{{#if summary}}
{{summary}}
{{/if}}
{{#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}}
{{/each}}

View File

@@ -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}}