Skip to content

Commit 2b5ed8a

Browse files
committed
Trim whitespace of change-notes before insertion
1 parent 0d0b3b9 commit 2b5ed8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎pr-checks/changenotes.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function getChangenotes(): ChangenoteFile[] {
5858
*/
5959
export function transferChangenotesToChangelog(contents: string): string {
6060
const changenotes = getChangenotes();
61-
const changenoteBodies = changenotes.map((c) => c.content);
61+
const changenoteBodies = changenotes.map((c) => c.content.trim());
6262
const changenotePaths = changenotes.map((c) => c.absolutePath);
6363

6464
const changelog = parseChangelog(contents);

0 commit comments

Comments
 (0)