Add rules to configure squash behavior and source branch deletion for merge requests

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Proposal

In the Settings > Merge requests section, add the option to configure the squash behavior and the "Delete source branch" option based on some rules (name of target or source branch, labels...). This would enable enforcement in workflows that require squashing and deleting the source branch on some merges (feature branches) but not on others (releases).

settings

Edited Sep 29, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading