Create a new protected branches shared view

What does this MR do and why?

Related to #372817 (closed), solved these points:

Directory Before Directory After Remark
app/views/projects/protected_branches/ app/views/protected_branches/
ee/app/views/projects/protected_branches/ ee/app/views/protected_branches/
app/views/shared/projects/protected_branches/ app/views/protected_branches/shared/ This directory seem not to be appropriate before

I split other points to other MRs to reduce the size of the MR, other MRs will be coming after this is merged.

How to set up and validate locally

  1. Visit the protected branches page: http://gdk.test:3000/gitlab-cn/gitlab/-/settings/repository#js-protected-branches-settings
  2. The feature of protected branches will be worked as before.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

/cc EM @daveliu

Edited by Song Huang

Merge request reports

Loading