gitlab-org--gitlab-foss/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
diff_notes_importer.rb
issue_and_label_links_importer.rb
issue_importer.rb Revert "Trigger iid logic from GitHub importer for issues." 2019-01-29 15:38:40 +01:00
issues_importer.rb
label_links_importer.rb
labels_importer.rb
lfs_object_importer.rb Added validations to prevent LFS object forgery 2019-01-31 16:51:54 +01:00
lfs_objects_importer.rb
milestones_importer.rb
note_importer.rb
notes_importer.rb
pull_request_importer.rb Create the source branch for a GitHub import 2019-02-11 22:00:05 -08:00
pull_requests_importer.rb
releases_importer.rb
repository_importer.rb Refactor use of Shell.import_repository for Wikis 2019-02-05 21:33:09 -08:00