Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-07 03:08:34 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-07 03:08:34 +0300
commit7e89568aa1b1c531aa34860fbd9e77d9e988b9b2 (patch)
tree9d644d947b75594d969f040ef046541c769e0dc3 /bin
parentf2143c9986ad7b6206b8a41cc9aeb419e543d3f5 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'bin')
-rwxr-xr-xbin/audit-event-type24
1 files changed, 12 insertions, 12 deletions
diff --git a/bin/audit-event-type b/bin/audit-event-type
index 8704dcfc0b0..fec34724c7c 100755
--- a/bin/audit-event-type
+++ b/bin/audit-event-type
@@ -36,7 +36,7 @@ class AuditEventTypeOptionParser
Options = Struct.new(
:name,
:description,
- :group,
+ :feature_category,
:milestone,
:saved_to_database,
:streamed,
@@ -71,9 +71,9 @@ class AuditEventTypeOptionParser
options.description = value
end
- opts.on('-g', '--group [string]', String,
-"Name of the group that introduced this audit event. For example, govern::compliance") do |value|
- options.group = value
+ opts.on('-c', '--feature-category [string]', String,
+"The feature category of this audit event. For example, compliance_management") do |value|
+ options.feature_category = value
end
opts.on('-M', '--milestone [string]', String,
@@ -145,16 +145,16 @@ class AuditEventTypeOptionParser
end
end
- def read_group
+ def read_feature_category
$stdout.puts
- $stdout.puts ">> Specify the group introducing the audit event type, like `govern::compliance`:"
+ $stdout.puts ">> Specify the feature category of this audit event, like `compliance_management`:"
loop do
- group = Readline.readline('?> ', false)&.strip
- group = nil if group.empty?
- return group unless group.nil?
+ feature_category = Readline.readline('?> ', false)&.strip
+ feature_category = nil if feature_category.empty?
+ return feature_category unless feature_category.nil?
- warn "group is a required field."
+ warn "feature_category is a required field."
end
end
@@ -231,7 +231,7 @@ class AuditEventTypeCreator
assert_existing_audit_event_type!
options.description ||= AuditEventTypeOptionParser.read_description
- options.group ||= AuditEventTypeOptionParser.read_group
+ options.feature_category ||= AuditEventTypeOptionParser.read_feature_category
options.milestone ||= AuditEventTypeOptionParser.read_milestone
options.saved_to_database = AuditEventTypeOptionParser.read_saved_to_database if options.saved_to_database.nil?
options.streamed = AuditEventTypeOptionParser.read_streamed if options.streamed.nil?
@@ -263,7 +263,7 @@ class AuditEventTypeCreator
{
'name' => options.name,
'description' => options.description,
- 'group' => options.group,
+ 'feature_category' => options.feature_category,
'milestone' => options.milestone,
'saved_to_database' => options.saved_to_database,
'streamed' => options.streamed,