gitlab_support_readiness 1.0.7 → 1.0.8
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/support_readiness/gitlab/issues.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb6ce249d7793519dad87daf138f77b5bca3e0e856750afc720f7d8d1a7ec2d9
|
4
|
+
data.tar.gz: 1e6421faf02b125338fc8ebd3ec0844999b2ed3ba024914cbc7ac49571b3d455
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 447477704b6d00f11f71927e26724160a485463b3b1f10e94b66f7dd978b0e34161f6ab67f47f1e58af7aa7a06e975b16792a2487baf87321b0896a5bb361b91
|
7
|
+
data.tar.gz: fc45684a9e03449b8962547622bc89e4fd5c3e8a64a248979dc1b5fdb5da0180e1581d72582f3ba19581079eb5a5ae0ab41645f22c87ba7e10d4daca9e52bc7d
|
@@ -343,7 +343,7 @@ module Readiness
|
|
343
343
|
# pp comment['updated_at']
|
344
344
|
# # => "2024-09-23T15:42:13Z"
|
345
345
|
def self.create_comment!(client, project, issue, params)
|
346
|
-
response = client.connection.post "projects/#{project.id}/issues/#{issue.
|
346
|
+
response = client.connection.post "projects/#{project.id}/issues/#{issue.iid}/notes", params.to_json
|
347
347
|
handle_request_error(1, 'GitLab', response.status, { action: 'Create issue comment', id: issue.id }) unless response.status == 200
|
348
348
|
Oj.load(response.body)
|
349
349
|
end
|
@@ -374,7 +374,7 @@ module Readiness
|
|
374
374
|
# pp comment['updated_at']
|
375
375
|
# # => "2024-09-23T16:47:36Z"
|
376
376
|
def self.update_comment!(client, project, issue, cid, params)
|
377
|
-
response = client.connection.put "projects/#{project.id}/issues/#{issue.
|
377
|
+
response = client.connection.put "projects/#{project.id}/issues/#{issue.iid}/notes/#{cid}", to_clean_json(params)
|
378
378
|
handle_request_error(1, 'GitLab', response.status, { action: 'Update issue comment', id: issue.id }) unless response.status == 200
|
379
379
|
Oj.load(response.body)
|
380
380
|
end
|
@@ -401,7 +401,7 @@ module Readiness
|
|
401
401
|
# pp comment
|
402
402
|
# # => true
|
403
403
|
def self.delete_comment!(client, project, issue, cid)
|
404
|
-
response = client.connection.delete "projects/#{project.id}/issues/#{issue.
|
404
|
+
response = client.connection.delete "projects/#{project.id}/issues/#{issue.iid}/notes/#{cid}"
|
405
405
|
handle_request_error(1, 'GitLab', response.status, { action: 'Delete issue comment', id: issue.id }) unless response.status == 204
|
406
406
|
true
|
407
407
|
end
|