Permalink
Browse files

Fix first = bug

  • Loading branch information...
1 parent 436cbce commit d8e8bf1305d3daa41dc5550674b74db2b60ac22b @tongueroo tongueroo committed Jan 20, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/gitcycle.rb
View
@@ -175,7 +175,7 @@ def qa(*issues)
run("git checkout #{qa_branch['source']}")
if issues[1..-1].empty?
- if issues.first = 'pass'
+ if issues.first == 'pass'
puts "Merging '#{branch}' into '#{qa_branch['source']}'.\n".green
run("git merge #{branch}")
run("git push origin #{qa_branch['source']}")
@@ -196,7 +196,7 @@ def qa(*issues)
end
branches.each do |branch|
- if issues.first = 'pass'
+ if issues.first == 'pass'
merge_remote_branch(
:user => branch['user'],
:repo => branch['repo'].split(':'),
@@ -213,7 +213,7 @@ def qa(*issues)
end
end
- if issues.first = 'pass'
+ if issues.first == 'pass'
puts "\nMarking Lighthouse tickets as 'pending-approval'.\n".green
branches = branches.collect do |b|
{ :name => b['branch'], :repo => b['repo'], :user => b['user'] }

0 comments on commit d8e8bf1

Please sign in to comment.