Skip to content

Commit

Permalink
Merge pull request #1191 from danger/pr_body
Browse files Browse the repository at this point in the history
Ensures the PR always has a body
  • Loading branch information
orta committed Jan 7, 2022
2 parents d8ac772 + 6772c4f commit ac8d0e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/platforms/GitHub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export function GitHub(api: GitHubAPI) {
let pr: GitHubPRDSL
try {
pr = await api.getPullRequestInfo()
pr.body = pr.body || ""
} catch {
process.exitCode = 1
throw `
Expand Down

0 comments on commit ac8d0e8

Please sign in to comment.