pvcnt / mergeable

A better inbox for GitHub pull requests
https://pvcnt.github.io/mergeable/
MIT License
31 stars 5 forks source link

Any plans to support GitLab? #76

Open woswos opened 3 weeks ago

woswos commented 3 weeks ago

Hi, the project looks cool, thanks for working on this. Are there any plans to support GitLab?

pvcnt commented 3 weeks ago

Hi there, thanks for the kind words! Supporting other hosting services than GitHub was definitely something I had in mind, but I was unsure where to put it in my roadmap.

It’s definitely doable, but I desperately lack of experience with GitLab. And once GitLab support is here, every new feature will have to be implemented for both GitHub and GitLab.

I suppose I would hence need some help from somebody more knowledgeable in GitLab than I am, and ideally able to support the integration later on, to the best of their ability of course.

woswos commented 3 weeks ago

@pvcnt If you make the backend design more modular from the very beginning, people can have an easier time implementing new hosting services to work with the frontend. I also use Gitea and would love to see Gitea support, too.

For example, if you design a shared interface for what your app needs at a high level and call the services through that interface only, GitLab and other services can be added to the backend without actually changing the frontend.

interface ServiceProvider {
    getName()
    listChangeRequests()
    ....
}
pvcnt commented 3 weeks ago

What can be more complex though is the semantics around the search query itself for example. For GitHub the search query is parsed and transformed, we would need similar logic for otter backends.

GitLab is fairly well documented but I do not see much for Gitea. Does it have an API for searching pull requests? And a search query syntax?