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 Revert "Trigger iid logic from GitHub importer for milestones." 2019-01-29 15:38:40 +01:00
caching.rb Rewrite the GitHub importer from scratch 2017-11-07 23:24:59 +01:00
client.rb Fix provider server URL used when listing repos to import 2018-03-12 16:01:43 -05:00
issuable_finder.rb Rewrite the GitHub importer from scratch 2017-11-07 23:24:59 +01:00
label_finder.rb Disable existing offenses for the CodeReuse cops 2018-09-11 17:32:00 +02:00
markdown_text.rb Rewrite the GitHub importer from scratch 2017-11-07 23:24:59 +01:00
milestone_finder.rb Disable existing offenses for the CodeReuse cops 2018-09-11 17:32:00 +02:00
page_counter.rb Rewrite the GitHub importer from scratch 2017-11-07 23:24:59 +01:00
parallel_importer.rb Removes all the irrelevant import related code and columns 2018-11-27 12:58:13 +00:00
parallel_scheduling.rb Rewrite the GitHub importer from scratch 2017-11-07 23:24:59 +01:00
rate_limit_error.rb Rewrite the GitHub importer from scratch 2017-11-07 23:24:59 +01:00
representation.rb Rewrite the GitHub importer from scratch 2017-11-07 23:24:59 +01:00
sequential_importer.rb Expire Wiki content cache after importing a repository 2018-06-11 08:33:06 -07:00
user_finder.rb Disable existing offenses for the CodeReuse cops 2018-09-11 17:32:00 +02:00