gitlab_support_readiness 1.0.36 → 1.0.37
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/zendesk/tickets.rb +5 -5
- 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: e459cc3f2cb6630193b9782e6d9b679e8cbd9f1700682f52de8345e9a3f4e970
|
4
|
+
data.tar.gz: 17d46a1beaa0fd0fe550616d8a607b82e298dfa4581f6aaa89dedcfac7d0f373
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 660521337677a451df9fdefe8a74e10161bf2ab3c7cbb0c0ba3ddf7b5c82c499d6fecdc679bd79f2c129ed9ae374281bcf299e79de88b0e3b6093df67ed0b49e
|
7
|
+
data.tar.gz: 14d7ef1485caf2c3f10cc16f1a7015cbb29000bcab4e39691a0796639b86e1243e4c1939012bd3651745172e760e4652c2eb808d49dd475cf13f6e72fa0ff231
|
@@ -174,9 +174,9 @@ module Readiness
|
|
174
174
|
# config.token = 'test123abc'
|
175
175
|
# config.url = 'https://example.zendesk.com/api/v2'
|
176
176
|
# client = Readiness::Zendesk::Client.new(config)
|
177
|
-
# ticket1 = Readiness::Zendesk::Tickets.find!(client, 1)
|
177
|
+
# ticket1 = Readiness::Zendesk::Tickets.find!(client, 1)
|
178
178
|
# ticket1.status = 'solved'
|
179
|
-
# ticket2 = Readiness::Zendesk::Tickets.find!(client, 2)
|
179
|
+
# ticket2 = Readiness::Zendesk::Tickets.find!(client, 2)
|
180
180
|
# ticket2.status = 'pending'
|
181
181
|
# tickets = [ticket1, ticket2]
|
182
182
|
# updates = Readiness::Zendesk::Tickets.update_many!(client, tickets)
|
@@ -243,7 +243,7 @@ module Readiness
|
|
243
243
|
# config.url = 'https://example.zendesk.com/api/v2'
|
244
244
|
# client = Readiness::Zendesk::Client.new(config)
|
245
245
|
# ticket = Readiness::Zendesk::Tickets.find!(client, 123456)
|
246
|
-
# comments = Readiness::Zendesk::Tickets.
|
246
|
+
# comments = Readiness::Zendesk::Tickets.comments(client, ticket)
|
247
247
|
# pp creates.select { |c| c['public'] == false }.count
|
248
248
|
# # => 12
|
249
249
|
def self.comments(client, ticket, sort = 'created_at')
|
@@ -705,7 +705,7 @@ module Readiness
|
|
705
705
|
# config.token = 'test123abc'
|
706
706
|
# config.url = 'https://example.zendesk.com/api/v2'
|
707
707
|
# client = Readiness::Zendesk::Client.new(config)
|
708
|
-
# tickets = Readiness::Zendesk::Tickets.
|
708
|
+
# tickets = Readiness::Zendesk::Tickets.find_many(client, [35436, 35437])
|
709
709
|
# pp ticket.count
|
710
710
|
# # => 2
|
711
711
|
def self.find_many(client, tids)
|
@@ -864,7 +864,7 @@ module Readiness
|
|
864
864
|
# config.url = 'https://example.zendesk.com/api/v2'
|
865
865
|
# client = Readiness::Zendesk::Client.new(config)
|
866
866
|
# ticket = Readiness::Zendesk::Tickets.find!(client, 141)
|
867
|
-
# redaction = Readiness::Zendesk::Tickets.redact_attachments
|
867
|
+
# redaction = Readiness::Zendesk::Tickets.redact_attachments(client, ticket)
|
868
868
|
# pp redaction
|
869
869
|
# # => true
|
870
870
|
def self.redact_attachments(client, ticket)
|