fiqus / coophub

Cooperatives repos over the world! 🌈🌎
https://coophub.io
MIT License
57 stars 28 forks source link

Extract github API into its own module and refactor cache warmer to use it #48

Closed diegomanuel closed 4 years ago

diegomanuel commented 4 years ago

Related to #4, as second step to archieve gitlab support (the first one was the PR #47).

The repos_warmer should be refactored to call behaviourized functions to fetch data from external sources. The first source will be github (and after this, in another issue, the gitlab one).

Each external source module should implement the required functions to fetch the remote data and return structs defined at #47 (Organization and Repository).

diegomanuel commented 4 years ago

Done at PR #50! Will be deployed at release v0.1.9.