Skip to content

Draft: Add a project merge check for status checks must succeed

What does this MR do and why?

Enable users to toggle a project setting that blocks merge requests from merging unless all status checks have passed to resolve #369860 (closed). This change is hidden behind a development feature flag.

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

  1. Enable the feature flag by running: echo "Feature.enable(:only_allow_merge_if_all_status_checks_passed)" | rails c
  2. View the Project > Settings > Merge requests page: http://localhost:3000/gitlab-org/gitlab-shell/-/settings/merge_requests
  3. Find the new setting under the Merge Checks section.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #369860 (closed)

Edited by Jiaan Louw

Merge request reports