Skip to content

Add link to branch rules from branches page

Nataliia Radina requested to merge 358209-visibility-branch-settings into master

What does this MR do and why?

Adds possibility to navigate to a branch rules sections of repository settings from a branches page

Screenshots or screen recordings

Before or as developer After as maintainer
Screenshot_2023-03-15_at_15.39.26 Screenshot_2023-03-15_at_15.35.08

How to set up and validate locally

  1. Enable branch rules FF echo "Feature.enable(:branch_rules)" | gdk rails c
  2. Navigate as a maintainer to Project > Branches
  3. Observe View brach rules button and alert
  4. Try to dismiss alert and make sure it won't appear on new page load
  5. Make sure that with the developer access you don't have this options

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 #358209

Merge request reports