apadmi_grout 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/apadmi/grout/service/board_service/jira_board_service.rb +5 -2
- data/lib/apadmi/grout/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: 8a044d2b76db5a199809db40b238d152df0b91b85f0092730177b60a104b5f9d
|
4
|
+
data.tar.gz: 9d46bc9e4c75765bd2fa056494af0cd42cfa72e623d331cac330da97388121cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb6d2a7ca64f3a9127ea8f625d1010e89e1febf0b25c787eaecacbe064e27da85ae82e587ed993c357fee1587e67c59cc41897712b4dc536e6b7ce9d6fb32dc9
|
7
|
+
data.tar.gz: 674d00cfa25d7fce59f316dea0fd63ab2aef0b21ca31d4ed583c132cc679dda8ec3421e6b9339a47c60d4b12ea3a614f614a36f3e73581d570e2f015dad6a95c
|
data/CHANGELOG.md
CHANGED
@@ -137,9 +137,12 @@ module Apadmi
|
|
137
137
|
query_string = "issueId=#{issue.raw_object.id}&applicationType=bitbucket&dataType=pullrequest"
|
138
138
|
response = @network_service.do_get("/rest/dev-status/latest/issue/details?#{query_string}")
|
139
139
|
|
140
|
-
|
140
|
+
parsed_detail = JSON.parse(response.body)["detail"]
|
141
141
|
|
142
|
-
|
142
|
+
return [] if parsed_detail.empty?
|
143
|
+
return [] unless parsed_detail[0].key?("pullRequests")
|
144
|
+
|
145
|
+
parsed_detail[0]["pullRequests"].map do |pr|
|
143
146
|
PullRequest.new(pr["id"], pr["name"], pr["status"].to_s == "MERGED", pr["status"].to_s == "DECLINED")
|
144
147
|
end
|
145
148
|
end
|
data/lib/apadmi/grout/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apadmi_grout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Apadmi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|