github icon indicating copy to clipboard operation
github copied to clipboard

An organization's repos

Open ecandino opened this issue 14 years ago • 3 comments

How would I get that data? github.orgs.find('ORG_NAME').repos doesn't work. The api says its possible. http://developer.github.com/v3/repos/

ecandino avatar Aug 26 '12 18:08 ecandino

Taking a peek at the source shows that the Repos.list method takes a param :org . So, for instance

g = Github.new(:oauth_token => [token])
g.repos.list(:org => 'org name')

sdossick avatar Aug 27 '12 07:08 sdossick

Great thanks!!

ecandino avatar Aug 28 '12 00:08 ecandino

Thanks @sdossick for helping out with the query!

Hi @ecandino hope your are good now and the gem works fine for you.

piotrmurach avatar Aug 28 '12 20:08 piotrmurach