From dc9cdaee6af5ca1e9c636ec1499dcb078fab02c9 Mon Sep 17 00:00:00 2001 From: Mo Gorhom Date: Thu, 31 Dec 2020 16:09:06 +0100 Subject: [PATCH] chore: added release templates --- templates/changelog-template.hbs | 30 ++++++++++++++++++++++++++++++ templates/release-template.hbs | 19 +++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 templates/changelog-template.hbs create mode 100644 templates/release-template.hbs diff --git a/templates/changelog-template.hbs b/templates/changelog-template.hbs new file mode 100644 index 0000000..3daecc0 --- /dev/null +++ b/templates/changelog-template.hbs @@ -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}} \ No newline at end of file diff --git a/templates/release-template.hbs b/templates/release-template.hbs new file mode 100644 index 0000000..f2a6656 --- /dev/null +++ b/templates/release-template.hbs @@ -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}} \ No newline at end of file