Allow synchronization of fork's protected branch
Problem to solve
When a fork's branch is protected and, for example, No one can push into it, a user may still want to Sync the branch via UI.
Related issue: Fetch new upstream contents when fork is behind (#330243 - closed)
Proposal
We could introduce an additional option like allow-force-push, but let's discuss the options.
Proposal (from @vyaklushin)
-
Extend
protected_branchestable withallow_fork_syncboolean field (default state:off) (backend-weight1) -
Introduce a fully functional
Allow fork synctoggle on Branch rules page (backend-weight2) -
Skip protected branches permission check for fork sync actions when
Allow fork synctoggle ison(backend-weight3)
See the spike merge request that has a similar implementation: !176718 (closed)
Edited by Vasilii Iakliushin