Forbid merge request squashing on some protected branches
Description
We are currently implementing a git-flow CI automated workflow. In this workflow we merge develop to master to trigger a maven release with a git tag creation and a merge back to develop.
As squashing is possible it's possible to have a master (release) branch with commit squashed from develop if there is a human error.
Note: squashing is possible for feature branches
Proposal
My proposal is to add a checkbox in the protected branches settings to forbid squashing for merge requests from the protected branches panel (where we select roles allowed to merge/push on this branch).
This permits granular protection on the release branch in a git-flow model