gitlab_support_readiness 1.0.6 → 1.0.8

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: ceb1c6a822dc256b24a1b9e7d10b865f89d8628734b21e5c3703abd0d5339f9b
4
- data.tar.gz: 1ed48ecd53433a12e92d9c52d33ac698d005fd8c875390d0914aac481757d18f
3
+ metadata.gz: cb6ce249d7793519dad87daf138f77b5bca3e0e856750afc720f7d8d1a7ec2d9
4
+ data.tar.gz: 1e6421faf02b125338fc8ebd3ec0844999b2ed3ba024914cbc7ac49571b3d455
5
5
  SHA512:
6
- metadata.gz: f62bbbd59d964ef4dd6c079111285ec5967065730bd7c11a365aa51df1d1c75e36e616f298eb98b0dfee6c69b66057f4835179a3ffc3d1b767b8ecbd9999acaf
7
- data.tar.gz: 71c68c0efa7e7077127fe84216693eb63eb21651ce4bc239d5d5792ec5fc2b983ebdfa115a13482f75d985e8ac669fa850c18f4698db4ee41c3697d13ca0ad18
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.id}/notes", to_clean_json(params)
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.id}/notes/#{cid}", to_clean_json(params)
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.id}/notes/#{cid}"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab_support_readiness
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Colyer