Skip to content

Commit

Permalink
ci(danger): ensure body is alway a string
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanharris committed Aug 6, 2021
1 parent d31e3a4 commit bbb4a11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dangerfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async function checkJIRA() {
return;
}

const body = github.pr.body;
const body = github.pr.body || '';
// TODO: Cross-reference JIRA tickets linked in PR body versus in commit messages!
const hasJIRALink = body.match(/https:\/\/jira\.appcelerator\.org\/browse\/[A-Z]+-\d+/);
if (!hasJIRALink) {
Expand Down

0 comments on commit bbb4a11

Please sign in to comment.