Option to delete the source branch on closed merge requests
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem to solve
When a merge request is closed, the source branch is not.
Intended users
User experience goal
The user should be able to delete the source branch of a closed MR with a button from within the MR.
Proposal
Add a Delete branch button to a closed merge request's widget.
Further details
We currently somewhat support this on MRs that are set to MWPS (or are merged) and their branch is not automatically deleted. We should expose the button in closed MRs as well.
MWPS:
Merged:
Permissions and Security
Permissions should follow the existing ones regarding removal of branches https://docs.gitlab.com/ee/user/permissions.html#project-members-permissions
The MR author and Developers should be able to delete the branch. If it's protected, then it should adhere to the configuration.
Documentation
Probably add something in https://docs.gitlab.com/ee/user/project/repository/branches/
Availability & Testing
What does success look like, and how can we measure that?
Clean repository which doesn't contain stale branches.
What is the type of buyer?
Project maintainers mostly. Should be a Core feature.