Skip to content

Conditionally show licensed features (Branch rules Details)

What does this MR do and why?

Conditionally show Status checks and Approvals section on Branch rules Details page

Screenshots or screen recordings

Unlicensed Licensed
Screenshot_2023-02-21_at_16.57.00 Screenshot_2023-02-21_at_17.00.21

How to set up and validate locally

  1. Ensure you've added a license to your GDK.
  2. Enable the branch_rules feature flag.
  3. Add a protected branch.
  4. Add a status check.
  5. Add a required MR approval.
  6. Navigate to Settings > Repository > Branch rules > Details.
  7. Status checks and approvals sections should be visible.
  8. Remove your license (or run as FOSS).
  9. Navigate to Settings > Repository > Branch rules > Details.
  10. Status checks and approvals sections should not be visible.

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 #391855 (closed)

Edited by Jacques Erasmus

Merge request reports

Loading