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 |
---|---|
How to set up and validate locally
- Ensure you've added a license to your GDK.
- Enable the
branch_rules
feature flag. - Add a protected branch.
- Add a status check.
- Add a required MR approval.
- Navigate to Settings > Repository > Branch rules > Details.
- Status checks and approvals sections should be visible.
- Remove your license (or run as FOSS).
- Navigate to Settings > Repository > Branch rules > Details.
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #391855 (closed)
Edited by Jacques Erasmus