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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ddc2737f4d4688e9c67b209109e783eddb68c3ff6744bc8cb58ee993cf18f12
4
- data.tar.gz: 879b0374f74b4316f8a3614719c3d8b161f84a94c465d557f99d27ebe6601e74
3
+ metadata.gz: cb6ce249d7793519dad87daf138f77b5bca3e0e856750afc720f7d8d1a7ec2d9
4
+ data.tar.gz: 1e6421faf02b125338fc8ebd3ec0844999b2ed3ba024914cbc7ac49571b3d455
5
5
  SHA512:
6
- metadata.gz: 9895e37008578fa2f0d6c79503649e30da79dda41edf01056817ef43a12df22d7b82ed4c74221452bbea4463767f9752d6d51e6e78270516762551ddcdae7b9b
7
- data.tar.gz: a269f08b9e16158a9993e5a4d7a77ed331b63d7d570066d7870a87e4f2863829d06aa9e7e28a420252d775dd72ac570a2aba14b9ca067b8adf400d968a900d35
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", params.to_json
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.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Colyer