dogsheep / github-to-sqlite

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

Add organization support to repos command #76

Open OverkillGuy opened 1 year ago

OverkillGuy commented 1 year ago

New --organization flag to signify all given "usernames" are private orgs. Adapts API URL to the organization path instead.

Not the best implementation, but a first draft to talk around

Fixes #75 (badly, no tests, overly vague, untested)

OverkillGuy commented 1 year ago

Tested PR just now in private org, fetched >2k repos infos flawlessly!

poetry run github-to-sqlite repos --organization github.db MYORG