github icon indicating copy to clipboard operation
github copied to clipboard

Issue when creating a public repo

Open lmayorga1980 opened this issue 12 years ago • 2 comments
trafficstars

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

lmayorga1980 avatar Aug 20 '13 13:08 lmayorga1980

@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.

piotrmurach avatar Aug 20 '13 22:08 piotrmurach

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

gentilfp avatar Feb 13 '15 13:02 gentilfp