Skip to content

Add status checks must succeed setting to project merge request settings

Daniel Tian requested to merge 369861-add-status-check-checkbox-to-settings into master

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:

ksnip_20221027-013624

How to set up and validate locally

  1. Enable the only_allow_merge_if_all_status_checks_passed feature flag.

  2. Go to any Project -> Settings -> Merge requests, then verify that the "Status checks must succeed" checkbox is shown.

  3. Check the checkbox and save the settings. Verify that the checkbox is checked once the page refreshes.

  4. 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.

Related to #369860 (closed)

Edited by Daniel Tian

Merge request reports