mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-04-24 06:37:16 -04:00
no log: Fix issues when generating changelogs
This commit is contained in:
parent
ac5d18923b
commit
bf885aaace
5 changed files with 21 additions and 9 deletions
|
@ -1,7 +1,5 @@
|
|||
{
|
||||
"template": "./changelog.hbs",
|
||||
"unreleased": true,
|
||||
"commitLimit": false,
|
||||
"ignoreCommitPattern": "^(Release|no log:).*",
|
||||
"sortCommits": "date-desc"
|
||||
}
|
14
.github/scripts/create_changelog.sh
vendored
Executable file
14
.github/scripts/create_changelog.sh
vendored
Executable file
|
@ -0,0 +1,14 @@
|
|||
#! /bin/bash
|
||||
# This script is used in release-it as changelog
|
||||
# export RELEASE_MASTER=1 to release master changelog
|
||||
|
||||
set -e
|
||||
|
||||
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
|
||||
else
|
||||
auto-changelog --stdout --starting-version $latest_verion --unreleased --commit-limit 0
|
||||
fi
|
4
.github/workflows/release_dev_to_master.yaml
vendored
4
.github/workflows/release_dev_to_master.yaml
vendored
|
@ -56,7 +56,9 @@ jobs:
|
|||
# TODO: Remove Stage Step
|
||||
|
||||
- name: Create Release
|
||||
run: release-it --ci --increment ${{ github.event.inputs.increment }}
|
||||
run: |
|
||||
export RELEASE_MASTER=1
|
||||
release-it --ci --increment ${{ github.event.inputs.increment }}
|
||||
Merge:
|
||||
needs: Release
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"git": {
|
||||
"requireCleanWorkingDir": false,
|
||||
"changelog": "auto-changelog --stdout",
|
||||
"changelog": ".github/scripts/create_changelog.sh",
|
||||
"tagName": "v${version}"
|
||||
},
|
||||
"github": {
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
From newest to oldest:
|
||||
{{#each releases}}
|
||||
{{#if @first}}
|
||||
{{#each commits}}
|
||||
- {{subject}}{{#if href}} [{{shorthash}}]({{href}}){{/if}}
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
{{#each commits}}
|
||||
- {{subject}}{{#if href}} [{{shorthash}}]({{href}}){{/if}}
|
||||
{{/each}}
|
||||
{{/each}}
|
Loading…
Add table
Add a link
Reference in a new issue