gitcycle 0.2.29 → 0.2.30
Sign up to get free protection for your applications and to get access to all the features.
- data/gitcycle.gemspec +1 -1
- data/lib/gitcycle.rb +1 -20
- metadata +1 -1
data/gitcycle.gemspec
CHANGED
data/lib/gitcycle.rb
CHANGED
@@ -364,7 +364,6 @@ class Gitcycle
|
|
364
364
|
elsif branch =~ /^qa_/
|
365
365
|
puts "\nRetrieving branch information from gitcycle.\n".green
|
366
366
|
qa_branch = get('qa_branch', :source => branch.gsub(/^qa_/, ''))
|
367
|
-
qa_branch_name = "qa_#{qa_branch['source']}_#{qa_branch['user']}"
|
368
367
|
|
369
368
|
if pass_fail == 'pass'
|
370
369
|
checkout_or_track(:name => qa_branch['source'], :remote => 'origin')
|
@@ -380,28 +379,10 @@ class Gitcycle
|
|
380
379
|
|
381
380
|
if pass_fail == 'pass' && issues.empty?
|
382
381
|
owner, repo = qa_branch['repo'].split(':')
|
383
|
-
|
384
|
-
qa_branch['branches'].each do |b|
|
385
|
-
repo = b['repo'].split(':')[1]
|
386
|
-
|
387
|
-
add_remote_and_fetch(
|
388
|
-
:owner => b['home'],
|
389
|
-
:repo => repo
|
390
|
-
)
|
391
|
-
|
392
|
-
output = run("git log #{qa_branch_name}..#{b['home']}/#{repo}")
|
393
|
-
|
394
|
-
unless output.strip.empty?
|
395
|
-
puts "\nUn-merged changes detected in '#{repo}/#{b['home']}':".red
|
396
|
-
puts "\n#{output}"
|
397
|
-
puts "\nTo merge the change: git merge #{repo}/#{b['home']}".yellow
|
398
|
-
end
|
399
|
-
end
|
400
|
-
|
401
382
|
merge_remote_branch(
|
402
383
|
:owner => owner,
|
403
384
|
:repo => repo,
|
404
|
-
:branch =>
|
385
|
+
:branch => "qa_#{qa_branch['source']}_#{qa_branch['user']}",
|
405
386
|
:type => :from_qa
|
406
387
|
)
|
407
388
|
end
|