gitlab_support_readiness 1.0.108 → 1.0.109
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/support_readiness/gitlab/epics.rb +6 -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: 39eb80e26ea6a9d845d2960550460270c0814cd42acbb94fb5c2f55acba05de0
|
4
|
+
data.tar.gz: a39b2da820bb0dff595e37730524c6e8c45094394da5f49d8c039375744995cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 673e369c3b98af22767d25f7c7f44c59c0fc62772e8c93001927db71a664efc66d8bdf91f81e2109b151ef88f221ed2eb2720d3055c6ed22efc84736bcae8e8b
|
7
|
+
data.tar.gz: ff562b6d1caf1c3886c28d5b228b7921f1923efd58c4f0f4d40669fbadb8a50b68c1a630f445710820ed157d6dad6ed9ae27169209d1cbfb08aff5d6e872b856
|
@@ -118,7 +118,10 @@ module Readiness
|
|
118
118
|
# # => "https://gitlab.com/gitlab-com/support/support-team-meta/-/issues/5"
|
119
119
|
def self.find(client, group, iid)
|
120
120
|
response = client.connection.get "groups/#{group.id}/epics/#{iid}"
|
121
|
-
|
121
|
+
# These endpoints throw a 403 instead of 404 when it does not exist
|
122
|
+
return { "message" => "Epic not found" } if response.status == 403
|
123
|
+
|
124
|
+
handle_request_error(0, 'GitLab', response.status, { action: 'get', id: iid }) unless response.status == 200
|
122
125
|
return Epics.new(Oj.load(response.body)) if response.status == 200
|
123
126
|
|
124
127
|
Oj.load(response.body)
|
@@ -145,6 +148,8 @@ module Readiness
|
|
145
148
|
# # => "https://gitlab.com/gitlab-com/support/support-team-meta/-/issues/5"
|
146
149
|
def self.find!(client, group, iid)
|
147
150
|
response = client.connection.get "groups/#{group.id}/epics/#{iid}"
|
151
|
+
# These endpoints throw a 403 instead of 404 when it does not exist
|
152
|
+
handle_request_error(1, 'GitLab', 404, { action: 'Find epic', id: iid }) if response.status == 403
|
148
153
|
handle_request_error(1, 'GitLab', response.status, { action: 'Find epic', id: iid }) unless response.status == 200
|
149
154
|
Epics.new(Oj.load(response.body))
|
150
155
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab_support_readiness
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.109
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Colyer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|