git_pr 0.0.14.beta15 → 0.0.14.beta16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9af4b86e0e341d7d744ae5afa8d4e74302e19272
4
- data.tar.gz: 0a4ac4c9e319ddee330a21780a45a6c5ae3ae4be
3
+ metadata.gz: 463df327553555157135caff5296bc1122e9c825
4
+ data.tar.gz: a73047b070d3f1c55621b42b8d881beb8c35a55f
5
5
  SHA512:
6
- metadata.gz: a7ee12e83f1a3a567fcd692532bd47c2285defa6b7dc00f72ffd5c992e1d637625877a50d198e2412b337b126e24ea509730f1bd848fdd7fdf67cf5d8d75d8e1
7
- data.tar.gz: 56bc28a766236be23ac16c98ee31493bbd024d5c9e41a2e07bb3866f9f7861bd288b3b759d1e2737d4e49292c8ab519baa03d63e806fe2463716cad51c06008c
6
+ metadata.gz: e3647056e5e1f455ca712df9e7bdb2a801e66558ebc1e824f8d4c4786a44ae4d890d8b67715709737ca9df90f2abf3cc6a48ce0c9dd575e5bdf6e2c3e236d34d
7
+ data.tar.gz: cc5759c5aabdd35ce5a7fddf8225004f035706669fc85f054c070ffd04509e6eb4eab44306e5bafb6e878089c0ec489599a2f6ff56f5d189b9bc164931fa326b
data/bin/git-pr CHANGED
@@ -247,10 +247,13 @@ case command
247
247
 
248
248
  when "merge"
249
249
  unless options.merge.additional_arguments.empty?
250
- pull_request = options.merge.additional_arguments.shift.to_i
250
+ argument = options.merge.additional_arguments.shift
251
251
  end
252
252
  # Load a pull request
253
- pull = GitPr::GitHub.find_or_prompt_for_pull_request github_project, pull_request
253
+ pull = find_pull_request_from_command_line_argument(git, github_project, argument)
254
+ unless pull
255
+ pull = GitPr::GitHub.find_or_prompt_for_pull_request(github_project, argument.to_i)
256
+ end
254
257
  GitPr::merge_pull_cleanly git, pull, options.merge
255
258
 
256
259
  when "list"
@@ -146,7 +146,7 @@ module GitPr
146
146
  puts "No open pull requests found for '#{github_project}'.".yellow
147
147
  exit
148
148
  end
149
- if pull_request
149
+ if pull_request > 0
150
150
  pull_request = pull_request
151
151
  pull = pulls.find { |p| p.number == pull_request }
152
152
  unless pull
@@ -1,3 +1,3 @@
1
1
  module GitPr
2
- VERSION = "0.0.14.beta15"
2
+ VERSION = "0.0.14.beta16"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_pr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14.beta15
4
+ version: 0.0.14.beta16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Sharon