From 24c6123899381d8033e9d8911ef297f53f6b672e Mon Sep 17 00:00:00 2001 From: Antonio Date: Sun, 3 Dec 2023 22:14:35 +0100 Subject: [PATCH] fix(auto-changelog): Updated the template for generating the changelog --- templates/changelog/template.hbs | 53 ++++++++++++++++++++++++-------- 1 file changed, 40 insertions(+), 13 deletions(-) diff --git a/templates/changelog/template.hbs b/templates/changelog/template.hbs index 47c03d6..fdf56a9 100644 --- a/templates/changelog/template.hbs +++ b/templates/changelog/template.hbs @@ -1,17 +1,44 @@ -# Mental Space Back End -This file is auto generated using [auto-changelog](https://github.com/cookpete/auto-changelog) +# Mental Space Back-End +All notable changes to this project will be documented in this file. -## Changelog - Because We Love Change -Greetings, dear user! 🎉 Here's a dazzling list of changes and updates. Brace yourself, for the excitement is overwhelming. +This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -{{#each sections}} - ## 🚀 {{this}} - The Stuff Dreams Are Made Of +{{#unless options.hideCredit}} + Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). +{{/unless}} - {{#each commits.[this]}} - - 🌟 {{commit.subject}} 🌈 - {{#if commit.body}} - {{indentLines commit.body " "}} - {{/if}} - {{/each}} +## Changelog -{{/each}} +{{#each releases}} + {{#if href}} + ## [{{title}}]({{href}}){{#if tag}} - {{isoDate}}{{/if}} + {{else}} + ## {{title}}{{#if tag}} - {{isoDate}}{{/if}} + {{/if}} + + {{#if summary}} + {{summary}} + {{/if}} + + {{#if merges}} + ### Merged + + {{#each merges}} + - {{#if commit.breaking}}**Breaking change:** {{/if}}{{message}} {{#if href}}[`#{{id}}`]({{href}}){{/if}} + {{/each}} + {{/if}} + + {{#if fixes}} + ### Fixed + + {{#each fixes}} + - {{#if commit.breaking}}**Breaking change:** {{/if}}{{commit.subject}}{{#each fixes}} {{#if + href}}[`#{{id}}`]({{href}}){{/if}}{{/each}} + {{/each}} + {{/if}} + + {{#commit-list commits heading='### Commits'}} + - {{#if breaking}}**Breaking change:** {{/if}}{{subject}} {{#if href}}[`{{shorthash}}`]({{href}}){{/if}} + {{/commit-list}} + +{{/each}} \ No newline at end of file