gitcycle 0.1.17 → 0.1.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/gitcycle.gemspec +1 -1
  2. data/lib/gitcycle.rb +2 -10
  3. metadata +3 -3
data/gitcycle.gemspec CHANGED
@@ -6,7 +6,7 @@ $:.unshift lib unless $:.include?(lib)
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "gitcycle"
9
- s.version = '0.1.17'
9
+ s.version = '0.1.18'
10
10
  s.platform = Gem::Platform::RUBY
11
11
  s.authors = [ 'Winton Welsh' ]
12
12
  s.email = [ 'mail@wintoni.us' ]
data/lib/gitcycle.rb CHANGED
@@ -191,7 +191,7 @@ class Gitcycle
191
191
  )
192
192
  end
193
193
 
194
- if !issues.empty? || pass_fail == 'pass'
194
+ unless issues.empty?
195
195
  puts "\nLabeling issue #{branch['issue']} as '#{label}'.\n".green
196
196
  get('label',
197
197
  'qa_branch[source]' => qa_branch['source'],
@@ -201,21 +201,13 @@ class Gitcycle
201
201
  end
202
202
  end
203
203
 
204
- if issues.empty? && pass_fail == 'fail'
204
+ if issues.empty?
205
205
  puts "\nLabeling all issues as '#{label}'.\n".green
206
206
  get('label',
207
207
  'qa_branch[source]' => qa_branch['source'],
208
208
  'labels' => [ label ]
209
209
  )
210
210
  end
211
-
212
- if pass_fail == 'pass'
213
- puts "Marking Lighthouse tickets as 'pending-approval'.\n".green
214
- branches = branches.collect do |b|
215
- { :name => b['branch'], :repo => b['repo'], :user => b['user'] }
216
- end
217
- get('ticket_resolve', 'branches' => Yajl::Encoder.encode(branches))
218
- end
219
211
  else
220
212
  puts "\nYou are not in a QA branch.\n".red
221
213
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitcycle
3
3
  version: !ruby/object:Gem::Version
4
- hash: 57
4
+ hash: 63
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 17
10
- version: 0.1.17
9
+ - 18
10
+ version: 0.1.18
11
11
  platform: ruby
12
12
  authors:
13
13
  - Winton Welsh