• Stan Hu's avatar
    Create the source branch for a GitHub import · e34a3213
    Stan Hu authored
    When the GitHub importer creates a merge request, it retrieves the SHA
    but does not actually create the source branch. This makes it impossible
    to merge an open merge request, particularly if the source branch were
    from a forked project. In that case, the branch will never exist because
    the original `project-name:source-branch` name is never created, nor
    is it a valid branch name.
    
    To prevent possible branch name conflicts, forked source branches
    are now renamed `github/fork/project-name/source-branch` and created
    when necessary.
    
    Note that we only create the source branch if the merge request
    is open. For projects that have many merge requests, the project
    would end up with a lot of possibly dead branches.
    
    Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/57370
    e34a3213
Name
Last commit
Last update
..
api Loading commit data...
assets Loading commit data...
backup Loading commit data...
banzai Loading commit data...
bitbucket Loading commit data...
bitbucket_server Loading commit data...
constraints Loading commit data...
container_registry Loading commit data...
declarative_policy Loading commit data...
flowdock Loading commit data...
generators/rails/post_deployment_migration Loading commit data...
gitaly Loading commit data...
gitlab Loading commit data...
google_api Loading commit data...
haml_lint Loading commit data...
json_web_token Loading commit data...
mattermost Loading commit data...
microsoft_teams Loading commit data...
object_storage Loading commit data...
omni_auth/strategies Loading commit data...
peek Loading commit data...
quality Loading commit data...
rouge Loading commit data...
rspec_flaky Loading commit data...
safe_zip Loading commit data...
sentry Loading commit data...
serializers Loading commit data...
support Loading commit data...
system_check Loading commit data...
tasks Loading commit data...
after_commit_queue.rb Loading commit data...
backup.rb Loading commit data...
banzai.rb Loading commit data...
carrier_wave_string_file.rb Loading commit data...
declarative_policy.rb Loading commit data...
event_filter.rb Loading commit data...
expand_variables.rb Loading commit data...
extracts_path.rb Loading commit data...
feature.rb Loading commit data...
file_size_validator.rb Loading commit data...
forever.rb Loading commit data...
gitlab.rb Loading commit data...
gt_one_coercion.rb Loading commit data...
milestone_array.rb Loading commit data...
mysql_zero_date.rb Loading commit data...
static_model.rb Loading commit data...
system_check.rb Loading commit data...
unfold_form.rb Loading commit data...
uploaded_file.rb Loading commit data...
version_check.rb Loading commit data...