gitlab-ce/lib/gitlab/github_import/importer
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
..
diff_note_importer.rb Refactor AutocompleteController 2018-08-20 13:53:00 +02:00
diff_notes_importer.rb Rewrite the GitHub importer from scratch 2017-11-07 23:24:59 +01:00
issue_and_label_links_importer.rb Rewrite the GitHub importer from scratch 2017-11-07 23:24:59 +01:00
issue_importer.rb Revert "Trigger iid logic from GitHub importer for issues." 2019-01-29 15:38:40 +01:00
issues_importer.rb Rewrite the GitHub importer from scratch 2017-11-07 23:24:59 +01:00
label_links_importer.rb Rewrite the GitHub importer from scratch 2017-11-07 23:24:59 +01:00
labels_importer.rb Disable existing offenses for the CodeReuse cops 2018-09-11 17:32:00 +02:00
lfs_object_importer.rb Added validations to prevent LFS object forgery 2019-01-31 16:51:54 +01:00
lfs_objects_importer.rb Support LFS objects when creating a project by import 2018-06-06 16:42:18 +00:00
milestones_importer.rb Revert "Trigger iid logic from GitHub importer for milestones." 2019-01-29 15:38:40 +01:00
note_importer.rb Refactor AutocompleteController 2018-08-20 13:53:00 +02:00
notes_importer.rb Rewrite the GitHub importer from scratch 2017-11-07 23:24:59 +01:00
pull_request_importer.rb Create the source branch for a GitHub import 2019-02-11 22:00:05 -08:00
pull_requests_importer.rb Don't expose project names in various counters 2018-06-21 16:56:40 +02:00
releases_importer.rb Disable existing offenses for the CodeReuse cops 2018-09-11 17:32:00 +02:00
repository_importer.rb Refactor use of Shell.import_repository for Wikis 2019-02-05 21:33:09 -08:00