git-review 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/git-review.rb +9 -3
  2. metadata +4 -4
@@ -278,12 +278,18 @@ class GitReview
278
278
  return false
279
279
  end
280
280
  @current_request = @current_requests.find{ |req| req['number'] == request_id }
281
- if @current_request.nil?
281
+ unless @current_request
282
+ # Additional try to get an older request from Github by specifying the number.
283
+ request = Octokit.pull_request(source_repo, request_id)
284
+ @current_request = request if request.state == state
285
+ end
286
+ if @current_request
287
+ true
288
+ else
282
289
  # No output for automated checks.
283
290
  puts "Request '#{request_id}' could not be found among all '#{state}' requests." unless automated
284
- return false
291
+ false
285
292
  end
286
- true
287
293
  end
288
294
 
289
295
  # Get latest changes from GitHub.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-review
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dominik Bamberger
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-02-10 00:00:00 Z
18
+ date: 2012-02-14 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: launchy