gitlab-org--gitlab-foss/lib/gitlab/github_import
Stan Hu e34a321327 Create the source branch for a GitHub import
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
2019-02-11 22:00:05 -08:00
..
importer Create the source branch for a GitHub import 2019-02-11 22:00:05 -08:00
representation Create the source branch for a GitHub import 2019-02-11 22:00:05 -08:00
bulk_importing.rb
caching.rb
client.rb
issuable_finder.rb
label_finder.rb
markdown_text.rb
milestone_finder.rb
page_counter.rb
parallel_importer.rb
parallel_scheduling.rb
rate_limit_error.rb
representation.rb
sequential_importer.rb
user_finder.rb