Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d94acf10
Commit
d94acf10
authored
Jun 25, 2021
by
Cynthia Ng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify when to use github_hostname
parent
1f29010a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
doc/api/import.md
doc/api/import.md
+3
-2
No files found.
doc/api/import.md
View file @
d94acf10
...
...
@@ -20,7 +20,7 @@ POST /import/github
|
`repo_id`
| integer | yes | GitHub repository ID |
|
`new_name`
| string | no | New repository name |
|
`target_namespace`
| string | yes | Namespace to import repository into. Supports subgroups like
`/namespace/subgroup`
. |
|
`github_hostname`
| string | no | Custom GitHub
enterprise hostname. Defaults to GitHub.com if
`github_hostname`
is not set
. |
|
`github_hostname`
| string | no | Custom GitHub
Enterprise hostname. Do not set for GitHub.com
. |
```
shell
curl
--request
POST
\
...
...
@@ -31,7 +31,8 @@ curl --request POST \
"personal_access_token": "aBc123abC12aBc123abC12abC123+_A/c123",
"repo_id": "12345",
"target_namespace": "group/subgroup",
"new_name": "NEW-NAME"
"new_name": "NEW-NAME",
"github_hostname": "https://github.example.com"
}'
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment