Comments (3)
At least when searching for repos on github.com, you can search like this:
org:meltwater is:public topic:drone
That would return all public repos from my org meltwater
containing the topic drone
.
I see that in your code you use this right now:
all_repos = gh.repositories()
Instead it might be something similar to this, of course replacing things accordingly based on your .env
:
all_repos = gh.search_repositories("org:meltwater is:public topic:drone")
Note: I didn't try this out yet.
from innersource-crawler.
I noticed that in the current implementation you are fetching all repos accessible via the GH Access Token, rather than searching for repos with a given topic only.
Searching by topic would likely bring down the amount of API calls you need quite a bit as well.
Did you choose the current implementation because you don't want to limit this to a single GitHub org?
from innersource-crawler.
@spier Good question! I did it this way because I couldn't figure out how to only fetch repos with a given topic. That would be much more efficient! Any ideas on how to do that?
from innersource-crawler.
Related Issues (9)
- What kind of permission is needed ? HOT 2
- Any plan to integrate the Repository Activity Score pattern? HOT 6
- Add support for gitHub Enterprise
- Convert this repository into a formal GitHub Action
- Write pytests
- repositories with no description cause an error HOT 2
- Fix linting issues
- For each resulting project add a key _InnerSourceMetadata to the result from the GitHub API call and fill it with additional metadata about the project: HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from innersource-crawler.