mirror of
https://github.com/zhigang1992/react-native-bottom-sheet.git
synced 2026-01-12 22:50:12 +08:00
chore: updated auto-changelog configs
This commit is contained in:
7
.auto-changelog
Normal file
7
.auto-changelog
Normal 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
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
30
templates/changelog-template.hbs
Normal file
30
templates/changelog-template.hbs
Normal 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}}
|
||||
19
templates/release-template.hbs
Normal file
19
templates/release-template.hbs
Normal 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}}
|
||||
Reference in New Issue
Block a user