Merge request approvals
- Tier: Premium, Ultimate
- Offering: GitLab Self-Managed, GitLab Dedicated
Merge request approval rules prevent users from overriding certain project settings. When enabled, these settings are enforced for all projects and groups in the instance.
These merge request approval settings can be set for the entire instance:
- Prevent approval by author. Prevents project maintainers from allowing request authors to merge their own merge requests.
- Prevent approvals by users who add commits. Prevents project maintainers from allowing users to approve merge requests if they have submitted any commits to the source branch.
- Prevent editing approval rules in projects and merge requests. Prevents users from modifying the approvers list in project settings or in individual merge requests.
The following are also affected by rules for the entire instance:
Enable merge request approval settings for an instance
To do this:
- On the left sidebar, at the bottom, select Admin.
- Select Push rules.
- Expand Merge request approvals.
- Select the checkbox for any of the approval rules.
- Select Save changes.