python-gitlab3
python-gitlab3 copied to clipboard
Creation of projects in groups
Creating a project within a group / namespace seems to be only possible by:
repo = gl.add_project(reponame) # this creates the project in the user's namespace
if repo:
mygroup.transfer_project(repo.id) # api user needs admin rights for this, while directly creating it within group mygroup would work since it is a master user on the group :(
Another way to do it is https://github.com/samrocketman/gitlab-mirrors/blob/69274d85593d82f752b9afbd2226783015564b7b/lib/manage_gitlab_project.py#L65-L78
Oh ok , thanks, I didn't find this in the documentation, so I switched to python-gitlab meanwhile which works just fine. :)
Not a bad choice. The maintainer is more active.
Heiko, could you add the extra information into the documentation? Your help would be great to fill in the gaps.
Info: namespace_id is used to set the group, other options should be documented too.