gitlab_support_readiness 1.0.134 → 1.0.136

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: ff21f0a29fabf8efcb2362b1c9f008acb5d9057f7aa4963542803cb6c3e3656c
4
- data.tar.gz: 723563bef73a9907f7128f6983f9aaf6bd26bc598f4d0be28fe9ee07b63fd0d3
3
+ metadata.gz: e7b741fe7986c2c56fabf8f787dfc7933df5f0626c3545301bd433c92a4c70a9
4
+ data.tar.gz: ccf7b32a5094150cefe0f51e40885c4ec9a232a5b30b6545deb48f8ab8e1769f
5
5
  SHA512:
6
- metadata.gz: 5cedd0699c731900735539eacc9e9193b36bf11babda52bfe92ef412739c4c62ec900d554f07e6eb29c3e43339856e24bd9266fd2e8d23284193023efbd9ae82
7
- data.tar.gz: 6b15828bd3a618669af07d49e7b09ac4be279bb81599d17e187db0a8d2ca9d5cea8ed269b9ecb376718de07795ab6aaa563645ea4ec0989c9eee9057815679f1
6
+ metadata.gz: 9a68ab896c6ffcf4707dd0218555196841815a6123852473f94cca621f1ea8c40520798cccd2c8893a74ea938d13c4693cae33f687f05ca5970227ca116f7780
7
+ data.tar.gz: fa721950196ea32283fca4294a97eb9c67fa6e470208fca493f9420e0d2abf32349f3be12f310a0c865973cabf32458b4852b6bf78308e1e529f9fa9e2e03bfc
@@ -20,14 +20,14 @@ module Readiness
20
20
  @gitlab_admin_client = gitlab_admin_client
21
21
  @ticket_id = ticket_id
22
22
  @ticket = Readiness::Zendesk::Tickets.find(@zendesk_client, @ticket_id)
23
- puts 'No ticket found, so no org notes to add' if @ticket.is_a? Hash
23
+ puts 'No ticket found, so namesquatting to work' if @ticket.is_a? Hash
24
24
  exit 0 if @ticket.is_a? Hash
25
25
 
26
26
  puts 'Ticket is closed, so no org notes to add' if @ticket.status == 'closed'
27
27
  exit 0 if @ticket.status == 'closed'
28
28
 
29
29
  return not_for_free_users unless paid_tags.any? { |t| @ticket.tags.include? t }
30
- return invalid_namespace if Readiness::GitLab::Namespaces.exists?(@gitlab_admin_client, namespace_to_check)
30
+ return invalid_namespace unless Readiness::GitLab::Namespaces.exists?(@gitlab_admin_client, namespace_to_check)
31
31
  return rejection_request if Readiness::GitLab::Namespaces.is_paid?(@gitlab_admin_client, namespace)
32
32
 
33
33
  group_checks if namespace.kind == 'group'
@@ -70,8 +70,8 @@ module Readiness
70
70
  return rejection_request if recent_activity
71
71
 
72
72
  owners_list.each do |o|
73
- search = Readiness::GitLab::Users.search_by_username(@gitlab_admin_client, i['username'])
74
- owners.push(search.detect { |s| s.username.downcase == i['username'].downcase })
73
+ search = Readiness::GitLab::Users.search_by_username(@gitlab_admin_client, o['username'])
74
+ owners.push(search.detect { |s| s.username.downcase == o['username'].downcase })
75
75
  end
76
76
  recent_owner_signin = false
77
77
  owners.compact.each do |o|
@@ -160,7 +160,7 @@ module Readiness
160
160
  def self.contact_owner(owners)
161
161
  new_ticket = Readiness::Zendesk::Tickets.new
162
162
  new_ticket.id = @ticket.id
163
- new_ticket.comment = { body: contact_owner_comment(owners), public: true }
163
+ new_ticket.comment = { body: contact_owner_comment(owners), public: false }
164
164
  new_ticket.custom_fields = [
165
165
  { id: 360020735259, value: 'stage-frt' }
166
166
  ]
@@ -393,14 +393,14 @@ module Readiness
393
393
  end
394
394
 
395
395
  def self.usgov_support_hours_comment
396
- type = if @organization.tags.include? '24x7_emergency_support_manual' || @organization.organization_fields['emergency_support_24x7']
396
+ type = if @organization.tags.include?('24x7_emergency_support_manual') || @organization.organization_fields['emergency_support_24x7']
397
397
  '24x7'
398
398
  else
399
399
  '12x5'
400
400
  end
401
- hours = if @ticket.priority == 'low' || @ticket.priority == 'normal'
402
- 'Monday through Friday, 0500-1700 Pacific Time'
403
- elsif @organization.tags.include? '24x7_emergency_support_manual' || @organization.organization_fields['emergency_support_24x7']
401
+ hours = if @ticket.ticket_form_id == 360001421112 || @ticket.ticket_form_id == '360001421112'
402
+ '0500-1700 Pacific Time, 7 days a week'
403
+ elsif type == '24x7' && %w[high urgent].include?(@ticket.priority)
404
404
  '24x7'
405
405
  else
406
406
  'Monday through Friday, 0500-1700 Pacific Time'
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.134
4
+ version: 1.0.136
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-04-21 00:00:00.000000000 Z
11
+ date: 2025-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport