dogsheep / github-to-sqlite

Save data from GitHub to a SQLite database
https://github-to-sqlite.dogsheep.net/
Apache License 2.0
403 stars 43 forks source link

Better support private repos for organizations #82

Open ryansb opened 7 months ago

ryansb commented 7 months ago

Using https://api.github.com/users/{SOMEONE}/repos endpoint does not seem to return private repos for an organization. In this PR, I added a --org option to match the one on the pull-requests command and allow collecting private repos.

This differs from https://github.com/dogsheep/github-to-sqlite/pull/76 in that it does not require all targets to be orgs or users.

Usage:

github-to-sqlite repos github.db user1 user2 --org org1 --org org2
DonDebonair commented 2 months ago

I would love this to be merged. I was hoping to use github-to-sqlite to analyze activity on repos across a Github organization. That is currently not possible