Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creation of projects in groups #27

Open
Heiko-san opened this issue Mar 2, 2016 · 4 comments
Open

Creation of projects in groups #27

Heiko-san opened this issue Mar 2, 2016 · 4 comments

Comments

@Heiko-san
Copy link

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 :(
@samrocketman
Copy link
Contributor

@Heiko-san
Copy link
Author

Oh ok , thanks, I didn't find this in the documentation, so I switched to python-gitlab meanwhile which works just fine. :)

@samrocketman
Copy link
Contributor

Not a bad choice. The maintainer is more active.

@doctormo
Copy link
Owner

doctormo commented Feb 16, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants