Skip to content

Commit

Permalink
Merge pull request #1174 from bugsnag/nickdowell/danger-branch-check
Browse files Browse the repository at this point in the history
Danger: check source branch when targeting master
  • Loading branch information
nickdowell authored Aug 25, 2021
2 parents c8da174 + 5e4c57a commit 8838981
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dangerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ end

###

if github.branch_for_base == "master"
failure "Only release PRs should target the master branch" unless github.branch_for_head.start_with?("release-")
end

parse_infer_results('infer-out/report.json')

parse_oclint_results('oclint.json')
Expand Down

0 comments on commit 8838981

Please sign in to comment.