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

Issue when creating a public repo #127

Open
lmayorga1980 opened this issue Aug 20, 2013 · 2 comments
Open

Issue when creating a public repo #127

lmayorga1980 opened this issue Aug 20, 2013 · 2 comments

Comments

@lmayorga1980
Copy link

The repository gets created as a private even when passing :is_private is set to false

#some other code that sets is_private = false
@github.repos.create name: name, description: desc, private: is_private, has_issue: true, has_wiki: true, has_downloads: true
@piotrmurach
Copy link
Owner

@lmayorga1980 when you fire the request you can add DEBUG=true environment variable which will add logger to the output and show you exactly what parameters are passed with the call etc... There is nothing that the library does with your parameters apart from passing them through. The docs say that by default false value is set if the parameter is missing. Your case would suggest that private is always set to true value which creates private repository. If you have time it would be good to add test to confirm the bug.

@gentilfp
Copy link
Contributor

@lmayorga1980 I tried to reproduce creating two repositories, one private and one public and it worked well here, can you still reproduce this error?

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