Skip to content

Project settings changes for MRs

Status quo

While working on !260 (merged) I noticed that we don't enforce any kind of MR approvals on this repository so, in practice, MR maintainers could merge their own MRs without approval.

Before setting change After setting change
Screenshot_from_2021-04-07_14-35-12 Screenshot_from_2021-04-07_14-50-47

I don't think this is a problem per se but it'd be nice to have the same workflow as we do have right now for https://gitlab.com/gitlab-org/gitlab where approval is required.

Solution

Instead of creating an issue asking for changes I went ahead and changed the following project settings demonstrating bias for action.

Screenshots

All changes were inspired by https://gitlab.com/gitlab-org/gitlab/edit.

Before After
General Settings > Merge Requests > Merge options Screenshot_from_2021-04-07_14-32-02 Screenshot_from_2021-04-07_14-42-18
General Settings > Merge Requests > Merge checks Screenshot_from_2021-04-07_14-32-35 Screenshot_from_2021-04-07_14-32-42
General Settings > Merge Requests > Merge request approvals Screenshot_from_2021-04-07_14-33-34 Screenshot_from_2021-04-07_14-34-03

Ideas for future?

This issue tracks the changes but also encourages further discussions about upcoming setting changes for this repo in this or separate issues 💪 It's also a great opportunity for Dogfooding features like Vulnerability checks etc.

Edited by Peter Leitzen