Add a CLI script to generate audit event type YAML definitions
What does this MR do and why?
- Adds a ruby script to generate audit event type YAML definitions. This is similar to the existing
bin/feature-flag
CLI. Usage: bin/audit-event-type [options] <audit-event-type>
- Created
lib/gitlab/audit/type/shared.rb
so thatPARAMS
can be shared betweenbin/audit-event-type
andlib/gitlab/audit/type/definition.rb
.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
- Run
bin/audit-event-type
and input the required fields. - It should create a new audit event type YAML definition at the correct path.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #367855 (closed)
Edited by Huzaifa Iftikhar