Commit 05b95ccf authored by Mike Jang's avatar Mike Jang

Merge branch 'mjang-replace-mr38183' into 'master'

Replace MR 38183, subgroup support for target namespaces

See merge request gitlab-org/gitlab!46065
parents cb87e5af 50b6b107
...@@ -13,10 +13,10 @@ POST /import/github ...@@ -13,10 +13,10 @@ POST /import/github
| `personal_access_token` | string | yes | GitHub personal access token | | `personal_access_token` | string | yes | GitHub personal access token |
| `repo_id` | integer | yes | GitHub repository ID | | `repo_id` | integer | yes | GitHub repository ID |
| `new_name` | string | no | New repository name | | `new_name` | string | no | New repository name |
| `target_namespace` | string | yes | Namespace to import repository into | | `target_namespace` | string | yes | Namespace to import repository into. Supports subgroups like `/namespace/subgroup`. |
```shell ```shell
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" --data "personal_access_token=abc123&repo_id=12345&target_namespace=root" "https://gitlab.example.com/api/v4/import/github" curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" --data "personal_access_token=abc123&repo_id=12345&target_namespace=group/subgroup" "https://gitlab.example.com/api/v4/import/github"
``` ```
Example response: Example response:
...@@ -51,7 +51,7 @@ POST /import/bitbucket_server ...@@ -51,7 +51,7 @@ POST /import/bitbucket_server
| `bitbucket_server_project` | string | yes | Bitbucket Project Key | | `bitbucket_server_project` | string | yes | Bitbucket Project Key |
| `bitbucket_server_repo` | string | yes | Bitbucket Repository Name | | `bitbucket_server_repo` | string | yes | Bitbucket Repository Name |
| `new_name` | string | no | New repository name | | `new_name` | string | no | New repository name |
| `target_namespace` | string | no | Namespace to import repository into | | `target_namespace` | string | no | Namespace to import repository into. Supports subgroups like `/namespace/subgroup` |
```shell ```shell
curl --request POST \ curl --request POST \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment