This repo bulk initializes GitLab repos based on a GitHub organization or user's current repositories. This will only ever be executed once.
Please see .envExample as a guide to create .env
export githubPAT = <github access token>
githubTarget = <github org or user name>
gitlabNamespaceID = <gitlab user or group ID>
gitlabToken = <gitlab access token>
curl "https://api.github.com/users/$GHUSER/repos?access_token=$GITHUB_API_TOKEN" | grep -w clone_url
curl -H "Content-Type:application/json" https://gitlab.com/api/v4/projects?private_token=TOKEN -d "{ \"name\": \"newRepo\", \"namespace_id\": \"ID\" }"
TOKEN = gitLab personal access token
ID = gitLab group namespace_id
curl --header "PRIVATE-TOKEN: <token>" "https://gitlab.com/api/v4/namespaces"