Enable editing squash settings for All branches
What does this MR do and why?
- Enables editing when target is All branches
- Also fixes a small bug where users could not save their selection when no default squash setting was set yet.
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
![]() |
How to set up and validate locally
- Enable the
branch_rule_squash_settingsfeature flag. - Create a project in a group.
- Navigate to Project > Settings > Repository.
- Click on
View detailsnext toAll branches. - On the Branch rule details page, the Squash commits when merging section should have an Edit button.
- Clicking the edit button should open a drawer and editing should work as expected (both EE and CE).
Related to #512674 (closed)
Edited by Jacques Erasmus


