Skip to content

Commit 0862467

Browse files
committed
chore: update changelog.ts
1 parent 563bbe4 commit 0862467

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

scripts/changelog.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,15 @@ const changelogFunctions = {
100100
}
101101

102102
const prefix = [
103-
links.pull === null ? "" : `${links.pull}`,
104-
links.commit === null ? "" : `${links.commit}`,
103+
links.pull === null ? "" : ` ${links.pull}`,
104+
links.commit === null ? "" : ` ${links.commit}`,
105105
].join("")
106106

107-
return `- ${annotation} ${firstLine}${
108-
prefix ? `${prefix}` : ""
109-
}\n${futureLines.map((l) => ` ${l}`).join("\n")}`
107+
return `- ${annotation} ${firstLine.replace(" ", " ")}${
108+
prefix ? ` ${prefix}` : ""
109+
}\n${futureLines
110+
.map((l) => ` ${l.replace(" ", " ")}`)
111+
.join("\n")}`
110112
},
111113
}
112114

0 commit comments

Comments
 (0)