Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gitlab | How do I prevent from the creator of the merge request to merge

I'm using gitlab and I just configured that in order to push to master, a merge request must be created BUT I don't want the merge request creator to be able to merge the request himself.

I want all the members in my team to be able to create merge request and approve merge request to other members in the team but not to themself

How can I do it?

like image 341
Tal Levi Avatar asked Sep 03 '25 13:09

Tal Levi


1 Answers

In the repository settings (http://example.com/repo/name/-/settings/merge_requests) you can Prevent approval by author:

Prevent approval by author settings in gitlab

That does exactly what it says - a MR must be approved by not-the-author before the author can merge their own MR. As shown in the above screenshot, there are other controls that prevent trivially bypassing the approval rules.

like image 86
AD7six Avatar answered Sep 05 '25 03:09

AD7six