Skip to content

Commit

Permalink
Ensure the pr body always exists
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Jan 7, 2022
1 parent 7c026f9 commit dfd4c81
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 dfd4c81

Please sign in to comment.