hubmerge 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/hubmerge/prompts.rb +7 -1
- data/lib/hubmerge/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 290a97c12478f1bebd232d212a558d95ac28f46ef9e363368e05c6926eb9c02f
|
4
|
+
data.tar.gz: 2bd11b8b3745d210243e26e22fb66b64f45f56aafb4f5e427f704df9fa16f44c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0e883bea5eadc3a74b919572b2688aea2fc1e4a6915ad4a9f890c3125837ce877161471ac0e5661ef0bf92785bfcb71150b7253b20a787152f5efceaed7f8b7
|
7
|
+
data.tar.gz: 1d5c3241c74bfd0046d4cc37eaa3b0440ef3d638486695ca3ff86e7e92e5aee7124c2650e162ef4d134423cda6723c1174506fb3806dfbf0ce6a722c81ac9f2d
|
data/Gemfile.lock
CHANGED
data/lib/hubmerge/prompts.rb
CHANGED
@@ -26,7 +26,7 @@ module HubMerge
|
|
26
26
|
def self.pull_requests_to_merge(pull_requests)
|
27
27
|
choices = pull_requests.map { |pr|
|
28
28
|
{
|
29
|
-
name: "##{pr.number} - #{pr.title}",
|
29
|
+
name: "#{self.repo_from_pr(pr)}##{pr.number} - #{pr.title}",
|
30
30
|
value: pr,
|
31
31
|
}
|
32
32
|
}
|
@@ -40,6 +40,12 @@ module HubMerge
|
|
40
40
|
)
|
41
41
|
end
|
42
42
|
|
43
|
+
def self.repo_from_pr(pr)
|
44
|
+
# GitHub doesn't return a full repository name in the response, only way
|
45
|
+
# to avoid an extra API call is to parse the `repository_url` string
|
46
|
+
pr.repository_url.sub("https://api.github.com/repos/", "")
|
47
|
+
end
|
48
|
+
|
43
49
|
def self.say(text)
|
44
50
|
puts text
|
45
51
|
end
|
data/lib/hubmerge/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hubmerge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Kuruvilla
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04
|
11
|
+
date: 2019-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|