Project settings for squash and delete are not used when creating merge request via API
Problem to Solve
In a project where squashing is encouraged and delete source branch is enabled by default, when merge requests are created via the API they are set with both of those settings to false
. This makes it challenging for external tools (like the GitLab CLI) to create merge requests without users needing to pass additional flags.
Additional Details
squash_on_merge
was added in !90893 (closed)
Proposal
When creating a merge request via the API, project settings should be followed if they're not passed as options in the API call.
Edited by Kai Armstrong