Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
GitLab
Merge requests
!84624
Add audit events for merge request settings
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add audit events for merge request settings
355805-merge-request-settings-audit-events
into
master
Overview
128
Commits
14
Pipelines
27
Changes
8
Merged
Harsimar Sandhu
requested to merge
355805-merge-request-settings-audit-events
into
master
2 years ago
Overview
63
Commits
14
Pipelines
27
Changes
8
Expand
What does this MR do and why?
Captures audit events for following settings
Merge commit message template (this is part of Part 1
#301124 (closed)
so we can skip this in Part 2)
Squash commit message template
Default description template for merge requests
Status checks added / edited / deleted
Screenshots or screen recordings
Squash options:
How to set up and validate locally
Run GDK
Go to Projects Settings -> General and Expand Merge requests.
Add, Edit, Delete Status check, Squash commit message template, Default description template for merge requests, Default description template for merge requests
Check audit events (admin/audit_events or project//-/audit_events) for every action (add, edit, delete)
Related to
#355805 (closed)
Edited
2 years ago
by
Harsimar Sandhu
0
0
Merge request reports
Viewing commit
b7ceddaf
Prev
Next
Show latest version
8 files
+
102
−
42
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
Search (e.g. *.vue) (Ctrl+P)
b7ceddaf
Humanize squash option audit and status check branch creation
· b7ceddaf
Harsimar Sandhu
authored
2 years ago
app/models/project_setting.rb
+
9
−
0
Options
@@ -36,6 +36,15 @@ def target_platforms=(val)
super
(
val
&
.
map
(
&
:to_s
)
&
.
sort
)
end
def
human_squash_option
case
squash_option
when
'never'
then
'Do not allow'
when
'always'
then
'Require'
when
'default_on'
then
'Encourage'
when
'default_off'
then
'Allow'
end
end
private
def
validates_mr_default_target_self
Loading