Share frontend code between Protected Branches and Protected Tags feature
Overview
With addition of Protected Tags with !10356 (merged), there has been a lot of duplication of frontend code between Protected Branches and Protected Tag feature, this issue is intended to reduce duplication with following proposal;
Proposal
-
Convert classes under protected_branches
to pure ES6. -
Create shared JS classes under protected_refs
, combining common properties betweenprotected_branches
andprotected_tags
. -
Create partials under app/views/shared/protected_refs
which can be used acrossprotected_branches
andprotected_tags
.
Related Issues
Edited by kushalpandya