Can a merge request can be configured to always use 'ours' with the GitLab API?

,

Hello,

i am using GitLab API to create merge requests in order to have a validation before deployment to Production.

The process : a dev creates a merge request with his temp branch as source and the prod branch as destination. This MR can be seen as a delivery request, so we don’t need conflict checking : the source branch should always be the winning one.

The git merge command has parameters to define the merging strategy (i.e: always use ‘ours’, ‘theirs’…) my question is : can this be achieved with the GitLab MR API ?

Thanks !

1 Like