From a55ef236279552539c37812c2c2c6301493baa13 Mon Sep 17 00:00:00 2001 From: Silk Rose Date: Sun, 31 Dec 2023 03:16:07 -0500 Subject: [PATCH] More work on changelog generator --- release-builder/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/release-builder/index.ts b/release-builder/index.ts index ab2ec09..0347824 100644 --- a/release-builder/index.ts +++ b/release-builder/index.ts @@ -164,10 +164,10 @@ function generatePacks( .map((c) => { const hash = c.split("\n")[0]; let change = plib.executeCommandReturn( - `git show --no-patch --format="format:%s" ${hash}` + `git show --no-patch --format=%s ${hash}` ); let notes = plib.executeCommandReturn( - `git show --no-patch --format="format:%b" ${hash}` + `git show --no-patch --format=%b ${hash}` ); change = change.charAt(0).toUpperCase() + change.slice(1); @@ -176,11 +176,13 @@ function generatePacks( notes = notes .trim() .split("\n") + .filter((c) => c !== "") .map( (c) => c.charAt(0).toUpperCase() + c.slice(1) ) .map((c) => ` - ${c}`) + .filter((c) => c !== "") .join("\n"); change = `${change}\n${notes}`; }