Fix error in changes-since-last-release script on PRs with no body
This commit is contained in:
parent
50ba8bdc9b
commit
5447f63e9d
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ async function main() {
|
||||||
console.log(" URL: ", webURL);
|
console.log(" URL: ", webURL);
|
||||||
|
|
||||||
// If the pull request contains a 'closes' line, print the closed issue.
|
// 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) {
|
if (fixesMatch) {
|
||||||
const fixedIssueURL = fixesMatch[2];
|
const fixedIssueURL = fixesMatch[2];
|
||||||
console.log(" Issue: ", fixedIssueURL);
|
console.log(" Issue: ", fixedIssueURL);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue