From 5447f63e9d5beac3bd99f89407c675932a7d830f Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 18 Oct 2022 13:12:27 -0700 Subject: [PATCH] Fix error in changes-since-last-release script on PRs with no body --- script/changes-since-last-release | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/changes-since-last-release b/script/changes-since-last-release index 5d0f94db12..23a65143b2 100755 --- a/script/changes-since-last-release +++ b/script/changes-since-last-release @@ -67,7 +67,7 @@ async function main() { console.log(" URL: ", webURL); // If the pull request contains a 'closes' line, print the closed issue. - const fixesMatch = pullRequest.body.match(FIXES_REGEX); + const fixesMatch = (pullRequest.body || '').match(FIXES_REGEX); if (fixesMatch) { const fixedIssueURL = fixesMatch[2]; console.log(" Issue: ", fixedIssueURL);