From 04355215b2d1489a763345ac73078399bad7d18f Mon Sep 17 00:00:00 2001 From: Joseph Lyons Date: Mon, 22 May 2023 14:44:05 -0400 Subject: [PATCH] Indent all release note lines for each PR --- script/get-preview-channel-changes | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/script/get-preview-channel-changes b/script/get-preview-channel-changes index 47623125f9..5a0be3ed66 100755 --- a/script/get-preview-channel-changes +++ b/script/get-preview-channel-changes @@ -69,9 +69,12 @@ async function main() { let releaseNotes = (pullRequest.body || "").split("Release Notes:")[1]; if (releaseNotes) { - releaseNotes = releaseNotes.trim(); + releaseNotes = releaseNotes.trim().split("\n") console.log(" Release Notes:"); - console.log(` ${releaseNotes}`); + + for (const line of releaseNotes) { + console.log(` ${line}`); + } } console.log()