dogsheep / dogsheep/github-to-sqlite

Fetch repos doesn't support organisations

Open
#75 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
474
Forks
50
PR merge metrics
No merged PRs in 30d

Description

Say I want to get all my Github Org's repos info, for data analysis. Not just the public repos, but also the private/internal repos.

The endpoints are different for organisation, and this tool doesn't take it into account:
https://github.com/dogsheep/github-to-sqlite/blob/ace13ec3d98090d99bd71871c286a4a612c96a50/github_to_sqlite/utils.py#L453
https://github.com/dogsheep/github-to-sqlite/blob/ace13ec3d98090d99bd71871c286a4a612c96a50/github_to_sqlite/utils.py#L455

The endpoints for organisation repos is instead ([source](https://docs.github.com/en/rest/repos/repos#list-organization-repositories)):
`url = "https://api.github.com/orgs/{}/repos".format(username)`

Let's add support for organisations repo scraping.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.