[Danger] Fail if there are merges from upstream in the PR

parent 20bb1ea3
...@@ -8,3 +8,7 @@ ...@@ -8,3 +8,7 @@
fail("`fdescribe` left in tests (#{file})") if contents =~ /^\w*fdescribe/ fail("`fdescribe` left in tests (#{file})") if contents =~ /^\w*fdescribe/
end end
end end
if commits.any? { |c| c.message =~ /^Merge branch '#{branch_for_merge}'/ }
fail("Please rebase to get rid of the merge commits in this PR")
end
...@@ -121,7 +121,7 @@ GEM ...@@ -121,7 +121,7 @@ GEM
minitest (~> 5.1) minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4) thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1) tzinfo (~> 1.1)
addressable (2.3.6) addressable (2.4.0)
ast (2.2.0) ast (2.2.0)
awesome_print (1.6.1) awesome_print (1.6.1)
bacon (1.2.0) bacon (1.2.0)
...@@ -136,7 +136,7 @@ GEM ...@@ -136,7 +136,7 @@ GEM
colored (1.2) colored (1.2)
crack (0.4.2) crack (0.4.2)
safe_yaml (~> 1.0.0) safe_yaml (~> 1.0.0)
danger (0.7.2) danger (0.7.4)
claide claide
colored (~> 1.2) colored (~> 1.2)
faraday faraday
...@@ -263,4 +263,4 @@ DEPENDENCIES ...@@ -263,4 +263,4 @@ DEPENDENCIES
xcodeproj! xcodeproj!
BUNDLED WITH BUNDLED WITH
1.11.2 1.12.1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment