-
Notifications
You must be signed in to change notification settings - Fork 3
Remove PyGithub and Add Support for Gitlab and Bitbucket #18
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
Conversation
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
…gitlab orgs Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
sachin-panayil
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is great work! makes this way more modular and robust. i have a few comments / notes about stuff but overall, great work! 🔥
IDEA: we should implement pagination of API requests soon so it doesn't come back to bite us
| for org in args.orgs.split(","): | ||
| org = org.strip() | ||
| indexGen.process_organization(org) | ||
| indexGen.process_github_org_files(org) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it seems like that when running the script, we call and check for Github orgs only but we should call to check all forges
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah we should update the script for that later in a separate PR.
Remove PyGithub and Add Support for Gitlab and Bitbucket
Problem
PyGithub has less control over rate limiting than I would like it too for our purposes. We also did not previously have support for platforms other than GitHub
Solution
Remove PyGithub. Add functionality to fetch code.json files from GitLab and Bitbucket.
Testing
Ran
main.pylocally