Skip to content

Allow force pushes - Specify who can force push

Problem to solve

Protected branches in GitLab are implemented differently than in GitHub. For example, in GitHub there are some protected rules that you can apply on one or a few branches that match an expression, while those rules exist in GitLab as a general project settings for all branches. In this issue we make the mapping, so if a protected rule is defined in GH, and similar rule exists in GitLab general settings, we will configure the migrated GitLab project with this rule as a general settings, and this rule will be applied to all branches.

Purposed solution

Scenario: "Allow force pushes" - "Specify who can force push" 
    Given "Allow force pushes" is defined in GitHub repository as a branch protected rule, and "Specify who can force push" is selected, and a list of people, teams or apps is listed. 
    When a user imports this repository to GitLab
    Then "Allowed to force push" will be check on in GitLab settings, and "Allowed to push" will include the same users as defined in GitHub.
    But teams or apps will not be set in GitLab. 
Edited by Martin Wortschack