hubmerge 0.0.8 → 0.0.9

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
  SHA256:
3
- metadata.gz: 5f31bc0691f8f109939bb3f749e9a1bf8243c3a2b569dba5180c178f5dbe1054
4
- data.tar.gz: fa3c0fc3367ee5c31f732aa598ca6493a0fffd91307368a93e690216f0380682
3
+ metadata.gz: 66828582cb13bc49cdb7939b38ba19756ebb7e61ec17dc98fe75351a57a6986b
4
+ data.tar.gz: e7c06a8e3321f975374a31808d7424507b82adcb039cf8e05f9a761d6e711665
5
5
  SHA512:
6
- metadata.gz: 3ca103d269e25c48843cedcc6b7245a9a68e94aa5be421f8ca76393946c3e75b673cf5d4a45b9af9402e09fde16327c1d34943acbd85cc4e5c06b224d91f4e2c
7
- data.tar.gz: 37c1451a7a92d4749fd2184792d41eb2270423baaad14713067f3abde7db6129a3510492402a0486af009d37c58257275c158b2fa756a5899e3a228b6e3a2319
6
+ metadata.gz: cc825c38669b1ff5c965545c22975b5f9a7923293d1f578fb5fbeb1caa5ff40ec9d04feb3d487f48b87c41e193b8a43a47dd4de937998b00de4b51bce1792550
7
+ data.tar.gz: 329f2dfa3999554e9e42256c56ecc10efe141c2ed7d95081cc6cf81955859f6070e44454a692a55741d56f1697472385f4d061a60da383eebccde76f37aec73c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hubmerge (0.0.8)
4
+ hubmerge (0.0.9)
5
5
  octokit (~> 4.0)
6
6
  tty-prompt (~> 0.18)
7
7
  tty-spinner (~> 0.9)
@@ -24,12 +24,20 @@ module HubMerge
24
24
  type: :flag,
25
25
  description: "Merge without confirmation from user (default: false)"
26
26
  },
27
+
27
28
  approve_before_merge: {
28
29
  short_switch: "-a",
29
30
  long_switch: "--approve",
30
31
  type: :flag,
31
32
  description: "Approve PR before merge (default: false)"
32
33
  },
34
+
35
+ show_version: {
36
+ short_switch: "-v",
37
+ long_switch: "--version",
38
+ type: :flag,
39
+ description: "Show a version and exit (default: false)"
40
+ },
33
41
  }
34
42
  end
35
43
 
@@ -1,3 +1,3 @@
1
1
  module HubMerge
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
data/lib/hubmerge.rb CHANGED
@@ -23,6 +23,10 @@ module HubMerge
23
23
  check_or_prompt_github_token(env)
24
24
  opts = Options.parse(argv)
25
25
 
26
+ if opts[:show_version]
27
+ return 0
28
+ end
29
+
26
30
  query = check_or_prompt_search_query(opts)
27
31
  prs = search_pull_requests(query)
28
32
  if prs.empty?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubmerge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Kuruvilla