Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Indent all release note lines for each PR

Joseph Lyons04355215b2d1
diff --git a/script/get-preview-channel-changes b/script/get-preview-channel-changes
index 47623125f9c..5a0be3ed666 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()