Skip to content

Commit 0e7abb1

Browse files
authored
apacheGH-35943: [Dev] Ensure link issue works when PR body is empty (#80)
1 parent 7ecec6c commit 0e7abb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/dev_pr/link.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async function commentGitHubURL(github, context, pullRequestNumber, issueID) {
8484
const issueInfo = await helpers.getGitHubInfo(github, context, issueID, pullRequestNumber);
8585
const message = "* Closes: #" + issueInfo.number
8686
if (issueInfo) {
87-
if (context.payload.pull_request.body.includes(message)) {
87+
if (context.payload.pull_request.body != null && context.payload.pull_request.body.includes(message)) {
8888
return;
8989
}
9090
await github.rest.pulls.update({

0 commit comments

Comments
 (0)