no log: Fix issues again when generating changelogs

This commit is contained in:
LASER-Yi 2021-04-19 16:39:11 +08:00
parent 85f170bfcd
commit cfed0f57c4
4 changed files with 10 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{
"template": "./changelog.hbs",
"template": "./changelog-dev.hbs",
"ignoreCommitPattern": "^(Release|no log:).*",
"sortCommits": "date-desc"
}

View File

@ -8,7 +8,7 @@ master_version=$(git describe --tags --abbrev=0 --match "v[0-9].[0-9].[0-9]")
latest_verion=$(git describe --tags --abbrev=0)
if [[ $RELEASE_MASTER -eq 1 ]]; then
auto-changelog --stdout --starting-version $master_version --commit-limit 3
auto-changelog --stdout -t changelog-master.hbs --starting-version $master_version --commit-limit 3
else
auto-changelog --stdout --starting-version $latest_verion --unreleased --commit-limit 0
fi

8
changelog-dev.hbs Normal file
View File

@ -0,0 +1,8 @@
From newest to oldest:
{{#each releases}}
{{#if @first}}
{{#each commits}}
- {{subject}}{{#if href}} [{{shorthash}}]({{href}}){{/if}}
{{/each}}
{{/if}}
{{/each}}