Add status checks must succeed setting to project merge request settings
What does this MR do and why?
This MR adds a "Status checks must succeed" checkbox setting to a project's merge request settings page:
How to set up and validate locally
-
Enable the
only_allow_merge_if_all_status_checks_passed
feature flag. -
Go to any Project -> Settings -> Merge requests, then verify that the "Status checks must succeed" checkbox is shown.
-
Check the checkbox and save the settings. Verify that the checkbox is checked once the page refreshes.
-
Uncheck the checkbox and save the settings. Verify that the checkbox is unchecked once the page refreshes.
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 Daniel Tian