Add or remove blocking merge requests

Merged Nick Thomas requested to merge 9688-add-remove-blocking-mrs into master

What does this MR do?

Allow blocking merge requests to be configured

GitLab has model-level support for the idea of one merge request "blocking" another from being merged - the second MR can only be merged once the first one has, itself, been merged. We also show any existing blocks in the merge request widget.

This MR adds support for adding and removing these blocks when creating or editing a merge request.

Frontend changes mostly by Sam Bigelow <>

Does this MR meet the acceptance criteria?


Performance and testing


If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Part of #9688 (closed)

Edited by 🤖 GitLab Bot 🤖