From 0862467c45efaa0df6213a14af088c10702ebb15 Mon Sep 17 00:00:00 2001 From: Govind Kumar Date: Mon, 15 Jan 2024 08:26:13 +0530 Subject: [PATCH] chore: update changelog.ts --- scripts/changelog.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/scripts/changelog.ts b/scripts/changelog.ts index 7407e70f7..bf9b76bb7 100644 --- a/scripts/changelog.ts +++ b/scripts/changelog.ts @@ -100,13 +100,15 @@ const changelogFunctions = { } const prefix = [ - links.pull === null ? "" : `${links.pull}`, - links.commit === null ? "" : `${links.commit}`, + links.pull === null ? "" : ` ${links.pull}`, + links.commit === null ? "" : ` ${links.commit}`, ].join("") - return `- ${annotation} ${firstLine}${ - prefix ? `${prefix}` : "" - }\n${futureLines.map((l) => ` ${l}`).join("\n")}` + return `- ${annotation} ${firstLine.replace(" ", " ")}${ + prefix ? ` ${prefix}` : "" + }\n${futureLines + .map((l) => ` ${l.replace(" ", " ")}`) + .join("\n")}` }, }