Search code examples
gitlabcommit

Is it possible to block merge request that have commit behind in gitlab?


In gitlab, I'd like to block merge request when the requested branch has some commit behind. So that the requester have to merge/rebase again (+ test)

Is it possible to configure gitlab to enforce that?


Solution

  • Feature reference

    To achieve this, set the merge method to Fast-forward merge: gitlab won't create merge commit and thus the branch to merge should contain all commit of the destination branch