Skip to content

DeleteMergedBranchesService should not delete protected branches

Toon Claes requested to merge tc-no-delete-protected-merged-branches into master

What does this MR do?

Exclude the protected branches to be deleted when deleting all the merged branches.

Why was this MR needed?

In !11000 (merged) DeleteBranchService was modified, what caused DeleteMergedBranchesService to also delete protected branches.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes gitlab-org/gitlab-ce#34553

Edited by Toon Claes

Merge request reports