jpappe
jpappe

Reputation: 375

GitLab: prevent users from accepting their own merge request

I have a group of developers working in a GitLab repository. I want them all to be able to create merge requests, but I want to make sure that there's a paper-trail of code review for each change, which means that the merge request must be accepted by someone besides the author.

I can set up something that sort of emulates this by using a protected branch, but then only a subset of people can accept merge requests into that branch. This is unnecessarily restrictive; any code can be accepted as long as it's gone through code review.

Is it possible to create such a workflow in GitLab? Specifically, is it possible to set things up so that a user can't accept their own merge request?

Upvotes: 5

Views: 2373

Answers (1)

Related Questions