Disable option to "Remove Source Branch" on MR for developers on a project basis

Customer Notes

We develop our JIRA’s on what is a feature branch (a branch per JIRA). However it may be that we construct an environment integration branch for SysTest differently from UAT. In other words, we need to keep the feature branches so we can merge them as appropriate later on. For example, an emergency production change that is a feature branch – this needs to be replayed into all the other environments at some point.

So, the problem here is the deletion of the branch – it makes it extremely difficult (not impossible, just difficult) if the branch has been removed.

With the amount of branches and features that we have it would be very easy for a developer to tag the branch for removal and for one of the Masters not to notice. It will help if the remove source branch functionality is restricted or only enabled once the code is deployed to production.

Proposal

Provide a configuration option to disable the "Remove Source branch" on an MR for non-master users per project

Links / references

  • https://gitlab.zendesk.com/agent/tickets/78833
  • https://gitlab.com/gitlab-org/gitlab-ce/issues/14413#note_30017931
Assignee Loading
Time tracking Loading