gitlab_support_readiness 1.0.134 → 1.0.135
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3047a275264f547915d50a7b9831ef43d260e371eebf0149936a03ea2f7acae1
|
4
|
+
data.tar.gz: 5c716483743c743ea1c1d9288e7bb29b4350dc0799909b2844ac453b2cce3223
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7e0f2db0dc8e39104f028b86a7d36bc8a666838dcfca9bc333148c776faffc66bc5e444c784b09cc90fde0250cd9bf0a12133b2ec1a1c2fa24971c2e71d4115
|
7
|
+
data.tar.gz: 30c6f8160c8eceaaa3791e5e3dc2b636b305a321d29fce7a9dfb61dba75e4c361e46e24ecd0598333da3b6202dead840fa74bb14f4b9323227f2e56e6274efbf
|
@@ -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
|
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
|
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,
|
74
|
-
owners.push(search.detect { |s| s.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:
|
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
|
]
|
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.
|
4
|
+
version: 1.0.135
|
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-
|
11
|
+
date: 2025-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|