Skip to content

Commit

Permalink
chore: update changelog.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
emgk committed Jan 15, 2024
1 parent 563bbe4 commit 0862467
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions scripts/changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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")}`
},
}

Expand Down

0 comments on commit 0862467

Please sign in to comment.