✏️ Fix changelog

This commit is contained in:
SebClem 2021-03-23 16:29:42 +01:00
parent b89dee4aa8
commit 32296d898f
3 changed files with 55 additions and 1 deletions

View File

@ -1,20 +1,69 @@
{{#each releases}}
{{#if @first}}
{{#commit-list commits heading='## 🚑 Fixs' message=':ambulance:|fix|bugfix|bug'}}
{{setVar "fix" "true"}}
- {{subject}} [`{{shorthash}}`]({{href}})
{{/commit-list}}
{{#unless @root.fix }}
{{#commit-list merges heading='## 🚑 Fixs' message=':ambulance:|fix|bugfix|bug'}}
- {{message}} [`{{id}}`]({{href}})
{{/commit-list}}
{{/unless}}
{{#if @root.fix }}
{{#commit-list merges heading='' message=':ambulance:|fix|bugfix|bug'}}
- {{message}} [`{{id}}`]({{href}})
{{/commit-list}}
{{/if}}
{{#commit-list commits heading='## 🔨 Changes' message=':hammer:|:arrow_up:|:heavy_plus_sign:'}}
{{setVar "change" "true"}}
- {{subject}} [`{{shorthash}}`]({{href}})
{{/commit-list}}
{{#unless @root.change }}
{{#commit-list merges heading='## 🔨 Changes' message=':hammer:|:arrow_up:|:heavy_plus_sign:'}}
- {{message}} [`{{id}}`]({{href}})
{{/commit-list}}
{{/unless}}
{{#if @root.change }}
{{#commit-list merges heading='' message=':hammer:|:arrow_up:|:heavy_plus_sign:'}}
- {{message}} [`{{id}}`]({{href}})
{{/commit-list}}
{{/if}}
{{#commit-list commits heading='## ✏ Enhancements' message=':pencil2:'}}
{{setVar "enhanc" "true"}}
- {{subject}} [`{{shorthash}}`]({{href}})
{{/commit-list}}
{{#unless @root.enhanc }}
{{#commit-list merges heading='## ✏ Enhancements' message=':pencil2:'}}
- {{message}} [`{{id}}`]({{href}})
{{/commit-list}}
{{/unless}}
{{#if @root.enhanc }}
{{#commit-list merges heading='' message=':pencil2:'}}
- {{message}} [`{{id}}`]({{href}})
{{/commit-list}}
{{/if}}
{{#commit-list commits heading='## ⬆️ Dependency updates' message=':arrow_up:'}}
{{setVar "dep" "true"}}
- {{subject}} [`{{shorthash}}`]({{href}})
{{/commit-list}}
{{#unless @root.dep }}
{{#commit-list merges heading='## ⬆️ Dependency updates' message=':arrow_up:'}}
- {{message}} [`{{id}}`]({{href}})
{{/commit-list}}
{{/unless}}
{{#if @root.dep }}
{{#commit-list merges heading='' message=':arrow_up:'}}
- {{message}} [`{{id}}`]({{href}})
{{/commit-list}}
{{/if}}
{{/if}}
{{/each}}

5
.github/custom-handlebars.js vendored Normal file
View File

@ -0,0 +1,5 @@
module.exports = function (Handlebars) {
Handlebars.registerHelper("setVar", function(varName, varValue, options) {
options.data.root[varName] = varValue;
});
}

View File

@ -5,7 +5,7 @@ github:
git:
changelog: "auto-changelog --stdout"
changelog: "auto-changelog --stdout --handlebars-setup .github/custom-handlebars.js"
push: false
tag: false
commit: false