Possibility to automate the creation of a new CI/CD project for an external repo
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Hello
We currently use GitLab as our main CI/CD platform, but for the time being our main source code repository is Github. We rely on this feature, https://docs.gitlab.com/ee/ci/ci_cd_for_external_repos/
We have automated the management of Gitlab groups, users, some projects which are not in GitHub, etc. We have automated a big part of our GitHub setup as well.
However there is an step we can't rely automate and this is the reason I'm opening this issue (after opening a ticket, #156445 and told to open an issue)
When we create a new project in Gitlab we follow this steps (manually) 1 - Retrieve an administrative user credentials from the password manager 2 - Login into our GitLab instance 3 - Click on New Project 4 - CI/CD for external repo 5 - Connect repositories from Github 6 - Enter the personal access token 7 - Choose the repo 8 - Choose the destination in our Gitlab instance (group and project name)
We really want to automate the steps 3 to 8, I've search in the documentation and I could not find a way to do this. Support confirmed that is not possible at the moment.
Can you add an API so this operation can be performed automatically? If not, can you guys document how to perform this operation with individual API calls to both GitLab and GitHub and I'll glue them myself?
thanks!