mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 17:39:50 +00:00
Trim whitespace of change-notes before insertion
This commit is contained in:
@@ -58,7 +58,7 @@ function getChangenotes(): ChangenoteFile[] {
|
||||
*/
|
||||
export function transferChangenotesToChangelog(contents: string): string {
|
||||
const changenotes = getChangenotes();
|
||||
const changenoteBodies = changenotes.map((c) => c.content);
|
||||
const changenoteBodies = changenotes.map((c) => c.content.trim());
|
||||
const changenotePaths = changenotes.map((c) => c.absolutePath);
|
||||
|
||||
const changelog = parseChangelog(contents);
|
||||
|
||||
Reference in New Issue
Block a user