Skip to content

Commit

Permalink
Merge pull request #183 from cbosdo/nil-body
Browse files Browse the repository at this point in the history
PR body may be empty
  • Loading branch information
cbosdo authored Sep 30, 2022
2 parents 43d53a8 + 458a3a0 commit 8fc5a8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gitarro/backend.rb
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def retriggered_by_comment?(pr, context)
# this function will check if the PR contains a checkbox
# for retrigger all the tests.
def retriggered_by_checkbox?(pr, context)
return false unless pr.body.match(/\[x\]\s+Re-run\s+test\s+"#{context}"/i)
return false if pr.body.nil? || !pr.body.match(/\[x\]\s+Re-run\s+test\s+"#{context}"/i)

skipped = ''
unless empty_files_changed_by_pr?(pr)
Expand Down

0 comments on commit 8fc5a8a

Please sign in to comment.