From 85649a71a611522d1317820b253d301d946e4ab6 Mon Sep 17 00:00:00 2001 From: Olivers Vitins Date: Sun, 20 Aug 2023 03:57:01 +0300 Subject: [PATCH] refactor(commands): change changelog output text remove quote literals from hashes in order to make them reference, add changelog description --- src/index.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index b8b88a7..638816b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -208,6 +208,7 @@ program let parsedCommitStacks: Array = []; console.log("# Changelog"); + console.log("Generation of this changelog is based on commits"); for (const commit of commits) { const tag = semver.sort( @@ -296,7 +297,7 @@ program : firstMessageLine[0]; console.log( - `${showHashes ? `- [${"`"}${shortHash}${"`"}]` : ``} - ${ + `${showHashes ? `- [${shortHash}]` : ``} - ${ type ? `**${type}**: ${briefMessage}` : briefMessage }` ); @@ -336,7 +337,7 @@ program : firstMessageLine[0]; console.log( - `${showHashes ? `- [${"`"}${shortHash}${"`"}]` : ``} - ${ + `${showHashes ? `- [${shortHash}]` : ``} - ${ type ? `**${type}**: ${briefMessage}` : briefMessage }` ); @@ -356,7 +357,7 @@ program : firstMessageLine[0]; console.log( - `${showHashes ? `- [${"`"}${shortHash}${"`"}]` : ``} - ${ + `${showHashes ? `- [${shortHash}]` : ``} - ${ type ? `**${type}**: ${briefMessage}` : briefMessage }` );