Skip to content

Commit

Permalink
Include the commit message conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospassos authored and pascalgn committed Mar 24, 2022
1 parent 0f74758 commit d362948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/merge.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ function getCommitMessage(mergeCommitMessage, pullRequest) {
} else if (mergeCommitMessage === "pull-request-description") {
return pullRequest.body;
} else if (mergeCommitMessage === "pull-request-title-and-description") {
return pullRequest.title + "\n\n" + pullRequest.body;
return pullRequest.title + (pullRequest.body ? "\n\n" + pullRequest.body : '');
} else {
return mergeCommitMessage.replace(PR_PROPERTY, (_, prProp) =>
resolvePath(pullRequest, prProp)
Expand Down

0 comments on commit d362948

Please sign in to comment.