Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'doc/workflow/importing/import_projects_from_bitbucket.md')
-rw-r--r--doc/workflow/importing/import_projects_from_bitbucket.md64
1 files changed, 50 insertions, 14 deletions
diff --git a/doc/workflow/importing/import_projects_from_bitbucket.md b/doc/workflow/importing/import_projects_from_bitbucket.md
index 935d6288f3b..fbbbc7f4a72 100644
--- a/doc/workflow/importing/import_projects_from_bitbucket.md
+++ b/doc/workflow/importing/import_projects_from_bitbucket.md
@@ -1,27 +1,63 @@
# Import your project from Bitbucket to GitLab
-It takes just a few steps to import your existing Bitbucket projects to GitLab. But keep in mind that it is possible only if Bitbucket support is enabled on your GitLab instance. You can read more about Bitbucket support [here](../../integration/bitbucket.md).
+Import your projects from Bitbucket to GitLab with minimal effort.
+
+## Overview
+
+>**Note:**
+The [Bitbucket integration][bb-import] must be first enabled in order to be
+able to import your projects from Bitbucket. Ask your GitLab administrator
+to enable this if not already.
+
+- At its current state, the Bitbucket importer can import:
+ - the repository description (GitLab 7.7+)
+ - the Git repository data (GitLab 7.7+)
+ - the issues (GitLab 7.7+)
+ - the pull requests (GitLab 8.4+)
+ - the wiki pages (GitLab 8.4+)
+ - the milestones (GitLab 8.7+)
+ - the labels (GitLab 8.7+)
+ - the release note descriptions (GitLab 8.12+)
+- References to pull requests and issues are preserved (GitLab 8.7+)
+- Repository public access is retained. If a repository is private in Bitbucket
+ it will be created as private in GitLab as well.
-* Sign in to GitLab.com and go to your dashboard
+Milestones and wiki pages are not imported from Bitbucket.
-* Click on "New project"
+## How it works
-![New project in GitLab](bitbucket_importer/bitbucket_import_new_project.png)
+When issues/pull requests are being imported, the Bitbucket importer tries to find
+the Bitbucket author/assignee in GitLab's database using the Bitbucket ID. For this
+to work, the Bitbucket author/assignee should have signed in beforehand in GitLab
+and [**associated their Bitbucket account**][social sign-in]. If the user is not
+found in GitLab's database, the project creator (most of the times the current
+user that started the import process) is set as the author, but a reference on
+the issue about the original Bitbucket author is kept.
-* Click on the "Bitbucket" button
+The importer will create any new namespaces (groups) if they don't exist or in
+the case the namespace is taken, the repository will be imported under the user's
+namespace that started the import process.
-![Bitbucket](bitbucket_importer/bitbucket_import_select_bitbucket.png)
+## Importing your Bitbucket repositories
-* Grant GitLab access to your Bitbucket account
+1. Sign in to GitLab and go to your dashboard.
+1. Click on **New project**.
-![Grant access](bitbucket_importer/bitbucket_import_grant_access.png)
+ ![New project in GitLab](img/bitbucket_import_new_project.png)
-* Click on the projects that you'd like to import or "Import all projects"
+1. Click on the "Bitbucket" button
-![Import projects](bitbucket_importer/bitbucket_import_select_project.png)
+ ![Bitbucket](img/import_projects_from_github_new_project_page.png)
-A new GitLab project will be created with your imported data. Keep in mind that if you want to Bitbucket users
-to be linked to GitLab user you have to have all of them in GitLab in advance. They will be matched by their BitBucket username.
+1. Grant GitLab access to your Bitbucket account
-### Note
-Milestones and wiki pages are not imported from Bitbucket.
+ ![Grant access](img/bitbucket_import_grant_access.png)
+
+1. Click on the projects that you'd like to import or **Import all projects**.
+ You can also select the namespace under which each project will be
+ imported.
+
+ ![Import projects](img/bitbucket_import_select_project.png)
+
+[bb-import]: ../../integration/bitbucket.md
+[social sign-in]: ../../user/profile/account/social_sign_in.md