MatheusRich / end_of_life

Lists repositories using end-of-life Ruby versions
MIT License
50 stars 3 forks source link

Support GitLab as well as GitHub #14

Open duncan-bayne opened 2 years ago

duncan-bayne commented 2 years ago

I have a number of projects in GitLab; it'd be nice to be able to run end_of_life against those projects as well.

I imagine that introducing this would mostly be a matter of introducing an abstraction (Foundry?) around the Oktokit library that the Repository class could use.

One could then build integrations with GitLab and possibly other foundries like sourcehut.

duncan-bayne commented 2 years ago

Happy to have a crack at this once I'm done with #9.

MatheusRich commented 2 years ago

Rock on! I've thought about it, but I was really lazy to actually implement it! That 100% right, we just need some kind of adapter and remove explicit references to "GitHub" in some places.