From 777ddefa73c03e169414cba1146eaa9ed21eeb48 Mon Sep 17 00:00:00 2001 From: Joseph T Lyons Date: Wed, 24 Jul 2024 12:34:42 -0400 Subject: [PATCH] Fix contributor-scraping code --- script/get-preview-channel-changes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/get-preview-channel-changes b/script/get-preview-channel-changes index 476e3a4be0..c1fefad37f 100755 --- a/script/get-preview-channel-changes +++ b/script/get-preview-channel-changes @@ -59,7 +59,7 @@ async function main() { const releaseNotesHeader = /^\s*Release Notes:(.+)/ims; let releaseNotes = pullRequest.body || ""; - let contributor = pullRequest.user.login || ""; + let contributor = pullRequest.user?.login ?? "Unable to identify"; const captures = releaseNotesHeader.exec(releaseNotes); const notes = captures ? captures[1] : "MISSING"; const skippableNoteRegex = /^\s*-?\s*n\/?a\s*/ims;