Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All repos for an organisation #74

Open
tinydylan opened this issue Mar 8, 2020 · 4 comments
Open

All repos for an organisation #74

tinydylan opened this issue Mar 8, 2020 · 4 comments

Comments

@tinydylan
Copy link

My organisation has hundreds of GitHub repositories under a single GitHub Organisation. This tap only extracts data a single repository - we would like this tap to extract data for all repositories in our Organisation.

@luandy64
Copy link
Contributor

luandy64 commented Mar 9, 2020

repositories = list(filter(None, config['repository'].split(' ')))

for repo in repositories:

I think according to these lines the tap is able to run for multiple repositories

@tinydylan
Copy link
Author

Thanks, @luandy64.

So, it sounds like the tap would just need to be altered so that it can read the list of repositories from a GitHub API call (https://api.github.com/orgs/ORG_NAME/repos).

@osterman
Copy link

osterman commented May 6, 2020

Btw, I went down the route but quickly ran into rate limits. Without #63, this cannot be done reliably.

@tinydylan
Copy link
Author

In stitchdata, I have the github integration running against a hard-coded list of 350 repositories. I hit rate limits for a few hours, then it's fine after that.

Getting all repos for an org in one setting is no different to what I'm doing, it just means that I don't have to keep regenerating the list of repos every time it changes.

While the rate limit does get in the way, it gets in the way already and I would argue for going ahead with this requirement independendly of graceful rate-limit handling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants