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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8abbb55c9654ed19e081833a98e42ee347e57bbbf83184c890a4af0500f7ff23
4
- data.tar.gz: d8082907b18d891eda9fb48b61c071a5b200119a3cec9d2f67ab5269249b4862
3
+ metadata.gz: 8a044d2b76db5a199809db40b238d152df0b91b85f0092730177b60a104b5f9d
4
+ data.tar.gz: 9d46bc9e4c75765bd2fa056494af0cd42cfa72e623d331cac330da97388121cc
5
5
  SHA512:
6
- metadata.gz: 8b5e60257228b9fe918e771de88176279cb91ea7eb04e9f3f5358345f574a77a49d1f179a059b79a729dbe03113d1fe79d9539b9801abd852fb941d000f4d893
7
- data.tar.gz: c8b2def2bd6f3808323db5c2ebb0179b98f3bf85ec090b2164879b08ea33841c91c7a0ea34508f6ef6a0789436ddaf2bf8fb44e73deae582dd5a490b0cf0adc7
6
+ metadata.gz: bb6d2a7ca64f3a9127ea8f625d1010e89e1febf0b25c787eaecacbe064e27da85ae82e587ed993c357fee1587e67c59cc41897712b4dc536e6b7ce9d6fb32dc9
7
+ data.tar.gz: 674d00cfa25d7fce59f316dea0fd63ab2aef0b21ca31d4ed583c132cc679dda8ec3421e6b9339a47c60d4b12ea3a614f614a36f3e73581d570e2f015dad6a95c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Core Changelog
2
2
 
3
+ ## [2.3.1] - 2023-04-05
4
+ * Makes loading pull request information more robust for situations where a ticket has no PRs.
5
+
3
6
  ## [2.3.0] - 2023-04-03
4
7
  * No changes, version bump to keep in sync with fastlane plugin.
5
8
 
@@ -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
- return [] if JSON.parse(response.body)["detail"].empty?
140
+ parsed_detail = JSON.parse(response.body)["detail"]
141
141
 
142
- JSON.parse(response.body)["detail"][0]["pullRequests"].map do |pr|
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Apadmi
4
4
  module Grout
5
- VERSION = "2.3.0"
5
+ VERSION = "2.3.1"
6
6
  end
7
7
  end
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.0
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-03 00:00:00.000000000 Z
11
+ date: 2023-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday