thegarage-gitx 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/thegarage/gitx/github.rb +3 -1
- data/lib/thegarage/gitx/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3ca247018abf7dcebd68cf0f1db75c0d28efd2a8
|
|
4
|
+
data.tar.gz: 6c28961ed17891bdf9c684c36b4354ac87c88144
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 33a1f377085a090f14b3cfc85a7f890336ee66970dfed1b0cafa96d103fdcdf6c34b50c06b87fc0ce51bada64a2b6d83bf5d80019773547499964aa1e6fc1e40
|
|
7
|
+
data.tar.gz: fc3c002f80c9c67315f9b5dd164806c929215f2f40d178aa5a7ce509dee418f47476ef1b82b2228052abc1fce7809af8ceef83e679ee68c6a4e63b647457898f
|
|
@@ -101,8 +101,10 @@ module Thegarage
|
|
|
101
101
|
# @returns [Hash] data structure of pull request info if found
|
|
102
102
|
# @returns nil if no pull request found
|
|
103
103
|
def find_pull_request(branch)
|
|
104
|
+
head_reference = [remote_origin_name.split('/').first, branch].join(':')
|
|
104
105
|
payload = {
|
|
105
|
-
|
|
106
|
+
head: head_reference,
|
|
107
|
+
state: open
|
|
106
108
|
}.to_json
|
|
107
109
|
response = RestClient::Request.new(:url => pull_request_url, :method => "GET", :payload => payload, :headers => request_headers).execute
|
|
108
110
|
data = JSON.parse(response.body)
|