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
path: root/doc/api
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-05-11 00:13:10 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-11 00:13:10 +0300
commitd9710d79c52bc73438022e79c79cfe3ab35b084b (patch)
tree4ccba377283753036ad28a75d061f7ee61afa806 /doc/api
parent20a86e7f6fd58882025b1c85b21e891d75220da5 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/import.md27
-rw-r--r--doc/api/project_import_export.md2
2 files changed, 16 insertions, 13 deletions
diff --git a/doc/api/import.md b/doc/api/import.md
index 356977a1b9e..e762de4a0fa 100644
--- a/doc/api/import.md
+++ b/doc/api/import.md
@@ -8,22 +8,20 @@ info: To determine the technical writer assigned to the Stage/Group associated w
Use the Import API to import repositories from GitHub or Bitbucket Server.
-## Prerequisites
-
-For information on prerequisites for using the Import API, see:
-
-- [Prerequisites for GitHub importer](../user/project/import/github.md#prerequisites).
-- [Prerequisites for Bitbucket Server importer](../user/project/import/bitbucket_server.md#import-your-bitbucket-repositories).
-
## Import repository from GitHub
-> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/381902) in GitLab 15.8, GitLab no longer automatically creates namespaces or groups if the namespace or group name specified in `target_namespace` doesn't exist. GitLab also no longer falls back to using the user's personal namespace if the namespace or group name is taken or `target_namespace` is blank.
+> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/381902) in GitLab 15.8, GitLab no longer automatically creates namespaces or groups if the namespace or group name specified in `target_namespace` doesn't exist. GitLab also no longer falls back to using the user's personal namespace if the namespace or group name is taken or `target_namespace` is blank.
+> - Requirement for Maintainer role instead of Developer role introduced in GitLab 16.0 and backported to GitLab 15.11.1 and GitLab 15.10.5.
Import your projects from GitHub to GitLab using the API.
-The namespace set in `target_namespace` must exist. The namespace can be your user namespace or an existing group that
-you have at least the Maintainer role for. Using the Developer role for this purpose was
-[deprecated](https://gitlab.com/gitlab-org/gitlab/-/issues/387891) in GitLab 15.8 and will be removed in GitLab 16.0.
+Prerequisites:
+
+- [Prerequisites for GitHub importer](../user/project/import/github.md#prerequisites).
+- The namespace set in `target_namespace` must exist.
+- The namespace can be your user namespace or an existing group that you have at least the Maintainer role for. Using
+ the Developer role for this purpose was [deprecated](https://gitlab.com/gitlab-org/gitlab/-/issues/387891) in GitLab
+ 15.8 and will be removed in GitLab 16.0.
```plaintext
POST /import/github
@@ -169,13 +167,16 @@ Returns the following status codes:
## Import repository from Bitbucket Server
-Import your projects from Bitbucket Server to GitLab via the API.
+Import your projects from Bitbucket Server to GitLab using the API.
-NOTE:
The Bitbucket Project Key is only used for finding the repository in Bitbucket.
You must specify a `target_namespace` if you want to import the repository to a GitLab group.
If you do not specify `target_namespace`, the project imports to your personal user namespace.
+Prerequisites:
+
+- For more information, see [prerequisites for Bitbucket Server importer](../user/project/import/bitbucket_server.md#import-your-bitbucket-repositories).
+
```plaintext
POST /import/bitbucket_server
```
diff --git a/doc/api/project_import_export.md b/doc/api/project_import_export.md
index 98f154c17d7..15f2e878570 100644
--- a/doc/api/project_import_export.md
+++ b/doc/api/project_import_export.md
@@ -138,6 +138,8 @@ ls *export.tar.gz
## Import a file
+> Requirement for Maintainer role instead of Developer role introduced in GitLab 16.0 and backported to GitLab 15.11.1 and GitLab 15.10.5.
+
```plaintext
POST /projects/import
```