Skip to content

Delete Source Branch as default on Merge Requests

Problem to solve

Developers are forgetting to set "delete source branch" on their merge requests.

This causes us to have hundreds of stale unused branches and to preform extra cleanup actions on our repository to keep the repo from growing. A default setting that deleted source branches (on the same repo at least) would help us reduce the clutter, and reduce storage/network load on our GitLab instance.

Intended users

Further details

At the repository level, we would like to be able to set the flag "delete source branch" as a default on Merge Requests for that specific repository.

Proposal

An additional checkbox setting under RepoName/edit -> Merge Requests titled "delete source branch by default"

Permissions and Security

For owners & managers of a repo.

Documentation

Same as other checkboxes under settings Merge Requests