From 29b5ddfaf3e062ca5f06fe497a52779e95e6feae Mon Sep 17 00:00:00 2001 From: Joseph T Lyons Date: Wed, 17 Jul 2024 13:20:19 -0400 Subject: [PATCH] Add PR author to release notes scraper script --- script/get-preview-channel-changes | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/get-preview-channel-changes b/script/get-preview-channel-changes index 598aa246a200173f3b738e1b3377a1f0f7a96e52..476e3a4be09c8ad7c861eac48af57ae01b63d091 100755 --- a/script/get-preview-channel-changes +++ b/script/get-preview-channel-changes @@ -59,6 +59,7 @@ async function main() { const releaseNotesHeader = /^\s*Release Notes:(.+)/ims; let releaseNotes = pullRequest.body || ""; + let contributor = pullRequest.user.login || ""; const captures = releaseNotesHeader.exec(releaseNotes); const notes = captures ? captures[1] : "MISSING"; const skippableNoteRegex = /^\s*-?\s*n\/?a\s*/ims; @@ -68,6 +69,7 @@ async function main() { } console.log("*", pullRequest.title); console.log(" PR URL: ", webURL); + console.log(" Author: ", contributor); // If the pull request contains a 'closes' line, print the closed issue. const fixesMatch = (pullRequest.body || "").match(FIXES_REGEX);