Commit 2368fa3f authored by Samuel Giddins's avatar Samuel Giddins

Merge pull request #5227 from CocoaPods/seg-danger-no-merges

[Danger] Fail if there are merges from upstream in the PR
parents 1c126b89 6b872563
...@@ -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
...@@ -139,7 +139,7 @@ describe_cli 'pod' do ...@@ -139,7 +139,7 @@ describe_cli 'pod' do
s.replace_pattern /git checkout -b <new-branch-name>/, 'git checkout -b new_branch_name' s.replace_pattern /git checkout -b <new-branch-name>/, 'git checkout -b new_branch_name'
# git sometimes prints this, but not always ¯\_(ツ)_/¯ # git sometimes prints this, but not always ¯\_(ツ)_/¯
s.replace_pattern /^\s*Checking out files.*done\.[\n]?/, '' s.replace_pattern /^\s*Checking out files.*done\./, ''
s.replace_path %r{ s.replace_path %r{
`[^`]*? # The opening backtick on a plugin path `[^`]*? # The opening backtick on a plugin path
......
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