Skip to content

Show Coverage-Check rule on MR settings

What does this MR do and why?

Solves #474190 (comment 2049665739)

Show Coverage-Check rule on MR settings

Coverage-Check rule should always be rendered with Enable button on MR settings. It should never be rendered on Branch rule details, since its context is not a particular branch. This should not depend on edit_branch_rule feature flag.

Changelog: fixed EE: true

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Context Before After
MR settings Screenshot_2024-08-20_at_13.41.33 Screen_Recording_2024-08-20_at_13.33.23
Branch rule details Screenshot_2024-08-20_at_13.41.24 Screenshot_2024-08-20_at_13.32.51

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

This is the EE feature.

  1. In a project, go to Settings / Merge requests and scroll down to Merge request approvals. You should have an option to set a Coverage-Check
  2. In a project, go to Settings / Repository / Branch rules, select View details on any rule and scroll down to Merge request approvals. You should not have an option to set a Coverage-Check.
Edited by Paulina Sedlak-Jakubowska

Merge request reports

Loading