Skip to content

Verify that user can update branch on fork syncing

What does this MR do and why?

The MR consists of 3 smaller parts, but the parts are too small for separate MRs:

  • Scope sync-fork feature flag to the fork source. It will allow us to enable the feature flag for all forks of a particular project (like gitlab-org/gitlab)
  • Verify whether a branch is protected on fork syncing. It verifies that projectSyncFork mutation cannot be called if branch is protected.
  • Display Update Fork button only if user can sync fork. Do not display the Update Fork button if branch is protected.

To test it locally

Edited by Igor Drozdov

Merge request reports

Loading