debian-mirror-gitlab/doc/user/admin_area/merge_requests_approvals.md

34 lines
1.4 KiB
Markdown
Raw Normal View History

2020-03-13 15:44:24 +05:30
---
2020-06-23 00:09:42 +05:30
stage: Create
group: Source Code
2021-02-22 17:27:13 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
2020-03-13 15:44:24 +05:30
type: reference, concepts
---
2021-01-03 14:25:43 +05:30
# Merge request approval rules **(PREMIUM ONLY)**
2020-03-13 15:44:24 +05:30
2020-06-23 00:09:42 +05:30
> Introduced in [GitLab Premium](https://gitlab.com/gitlab-org/gitlab/-/issues/39060) 12.8.
2020-03-13 15:44:24 +05:30
2021-01-03 14:25:43 +05:30
Merge request approval rules prevent users from overriding certain settings on the project
level. When enabled at the instance level, these settings are no longer editable on the
project level.
2020-03-13 15:44:24 +05:30
To enable merge request approval rules for an instance:
2020-10-24 23:57:45 +05:30
1. Navigate to **Admin Area >** **{push-rules}** **Push Rules** and expand **Merge
2021-01-03 14:25:43 +05:30
requests approvals**.
2020-03-13 15:44:24 +05:30
1. Set the required rule.
1. Click **Save changes**.
## Available rules
Merge request approval rules that can be set at an instance level are:
2020-04-22 19:07:51 +05:30
- **Prevent approval of merge requests by merge request author**. Prevents project
2021-01-03 14:25:43 +05:30
maintainers from allowing request authors to merge their own merge requests.
2020-04-22 19:07:51 +05:30
- **Prevent approval of merge requests by merge request committers**. Prevents project
2021-01-03 14:25:43 +05:30
maintainers from allowing users to approve merge requests if they have submitted
any commits to the source branch.
- **Prevent users from modifying merge request approvers list**. Prevents users from
modifying the approvers list in project settings or in individual merge requests.