Skip to content

Commit

Permalink
More work on changelog generator
Browse files Browse the repository at this point in the history
  • Loading branch information
SilkRose committed Dec 31, 2023
1 parent b5a30cd commit a55ef23
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions release-builder/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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}`;
}
Expand Down

0 comments on commit a55ef23

Please sign in to comment.