Merge request approvals
- Tier: Premium, Ultimate
- Offering: GitLab Self-Managed
Merge request approval rules prevent users from overriding certain settings for the project. When enabled for the entire instance, these settings cascade and can no longer be changed:
- In projects.
- In groups.
To enable merge request approval settings for an instance:
- On the left sidebar, at the bottom, select Admin.
- Select Push rules.
- Expand Merge request approvals.
- Choose the required options.
- Select Save changes.
Available rules
Merge request approval settings that can be set for the instance are:
- 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:
Docs
Edit this page to fix an error or add an improvement in a merge request.
Create an issue to suggest an improvement to this page.
Product
Create an issue if there's something you don't like about this feature.
Propose functionality by submitting a feature request.
Feature availability and product trials
View pricing to see all GitLab tiers and features, or to upgrade.
Try GitLab for free with access to all features for 30 days.
Get help
If you didn't find what you were looking for, search the docs.
If you want help with something specific and could use community support, post on the GitLab forum.
For problems setting up or using this feature (depending on your GitLab subscription).
Request support