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 |
---|---|
How to set up and validate locally
- Enable the feature flag by running:
echo "Feature.enable(:only_allow_merge_if_all_status_checks_passed)" | rails c
- View the Project > Settings > Merge requests page:
http://localhost:3000/gitlab-org/gitlab-shell/-/settings/merge_requests
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #369860 (closed)
Edited by Jiaan Louw