summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLASER-Yi <[email protected]>2021-04-19 16:39:11 +0800
committerLASER-Yi <[email protected]>2021-04-19 16:39:11 +0800
commitcfed0f57c49bfdd26972753574d9178ce56c88c4 (patch)
treea885a3f5ec7914c10ab409796eef8f2e5f4b9506
parent85f170bfcdb7fdee6216a7063bd75aa38afbab12 (diff)
downloadbazarr-cfed0f57c49bfdd26972753574d9178ce56c88c4.tar.gz
bazarr-cfed0f57c49bfdd26972753574d9178ce56c88c4.zip
no log: Fix issues again when generating changelogs
-rw-r--r--.auto-changelog2
-rwxr-xr-x.github/scripts/create_changelog.sh2
-rw-r--r--changelog-dev.hbs8
-rw-r--r--changelog-master.hbs (renamed from changelog.hbs)0
4 files changed, 10 insertions, 2 deletions
diff --git a/.auto-changelog b/.auto-changelog
index ae00f1230..e41248479 100644
--- a/.auto-changelog
+++ b/.auto-changelog
@@ -1,5 +1,5 @@
{
- "template": "./changelog.hbs",
+ "template": "./changelog-dev.hbs",
"ignoreCommitPattern": "^(Release|no log:).*",
"sortCommits": "date-desc"
} \ No newline at end of file
diff --git a/.github/scripts/create_changelog.sh b/.github/scripts/create_changelog.sh
index 909a773e1..59dc0554e 100755
--- a/.github/scripts/create_changelog.sh
+++ b/.github/scripts/create_changelog.sh
@@ -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 \ No newline at end of file
diff --git a/changelog-dev.hbs b/changelog-dev.hbs
new file mode 100644
index 000000000..d41d60284
--- /dev/null
+++ b/changelog-dev.hbs
@@ -0,0 +1,8 @@
+From newest to oldest:
+{{#each releases}}
+ {{#if @first}}
+ {{#each commits}}
+ - {{subject}}{{#if href}} [{{shorthash}}]({{href}}){{/if}}
+ {{/each}}
+ {{/if}}
+{{/each}} \ No newline at end of file
diff --git a/changelog.hbs b/changelog-master.hbs
index aa1ae4e1d..aa1ae4e1d 100644
--- a/changelog.hbs
+++ b/changelog-master.hbs