Draft: Create API to Import one GitHub Org into a GitLab Group
What does this MR do and why?
It's an implementation of Create API to Import one GitHub Org into a GitLab Group
Screenshots or screen recordings
api-to-import-github-org-into-group
How to set up and validate locally
- Send POST request to /api/v4/import/github/groups with GitHub personal_access_token and name of your existing GitHub repo as parameters and add your GitLab PRIVATE-TOKEN to headers
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/import/github/groups?personal_access_token=ghp_PaTV2omJyrvZVm2WgMShdBF4RP84ao1FflYW&name=org-name"
- In the response you should see json with newly created GitLab group attributes (name and descriptions have to be the same as for the GitHub organization)
MR acceptance checklist
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Tetiana Zavediuk