Add groups of current project to selection in Protected Branches configuration
Proposal
As a project maintainer I want to have a selection of all groups associated with the current project to configure »Protected Branches«.
Problem to solve:
Right now I can create a protected branch and have the fields »Allowed to merge:« and »Allowed to push:« available. Both fields allow the selection of a list of fixed roles.
These roles are not sufficient in some use cases. Example: Only senior developers are allowed to merge to »main« branch. Every developer is allowed to create branches and open merge request, also junior developers. Both teammates have the role »developer« in GitLab. Both should not get a higher role (project owner for the senior) or a lower role (reporter for the developer), as this clashes with other restrictions in GitLab. Instead it would be sufficient to have a group, where a list of senior developers is associated with. This group then may push/merge to the protected branch.