magithub icon indicating copy to clipboard operation
magithub copied to clipboard

Gitlab support ?

Open nlamirault opened this issue 7 years ago • 7 comments

First, thanks for this package ! Now that magithub no longer depends on HUB, can we consider a Gitlab support ? Using glab client ?

nlamirault avatar May 15 '17 12:05 nlamirault

That would be a separate package (perhaps a magitlab) and would require a system by which to choose a backend (where the 'backends' would be the installable packages and each backend would depend on the common display code). If we go this route though, it'll be interesting to see how we can still take advantage of GitHub-specific features and API.

Could you link or produce a brief comparison of GitLab and GitHub? Does GitLab have labels? What's its concept of a PR look like? Etc.

I'll leave the issue open, but this is out-of-scope for now. I'll note that something along these lines is one of @tarsius's future visions.

vermiculus avatar May 15 '17 13:05 vermiculus

Slightly off topic, but I intend to update glab.el, once the current changes to ghub.el are "complete". And I intend to do so by transplanting recent history and then doing some git filter-branch voodoo. There might however be a delay because I am traveling.

tarsius avatar May 15 '17 16:05 tarsius

From Gitter:

matrixbot @Seylerius Aug 28 23:18 What are the odds of gitlab support happening at some point in the near future, or is there a similar project to achieve a "magitlab"-like effect?

matrixbot @jgkamat Aug 28 23:27 That would be awesome but it seems unlikely since it uses the github api. Maybe magithub could have multiple backends?

Sean Allred @vermiculus 07:26 This has come up in the past. The glab client needs to mature before I can entertain the idea. Recent updates to apiwrap.el make it more feasible than it used to be, but there are still many things that would have to change. One of the larger things is that we would need to come up with some lightweight method dispatch for the different structures of similar objects (eg issues) to have anything close to a maintainable codebase.

vermiculus avatar Aug 29 '17 13:08 vermiculus

Hey @vermiculus, any advance on this? Now that Debian has moved to a Gitlab instance for all its VCS stuff (see here), it would be great if magitlab could become a real thing.

Thanks in advance.

mfvescovi avatar Nov 29 '18 16:11 mfvescovi

I don't plan to add gitlab support right now, but am leaving the idea as an open enhancement. To be perfectly transparent, I'm more of the mind to help with the magit forge efforts to make the interface truly backend-agnostic. That may mean some pieces (like CI status) are split out into separate packages, but it's better in the long run, I think.

It's uncertain when this will take place, however, but I hope to have a plan in place by early next year.

vermiculus avatar Dec 01 '18 12:12 vermiculus

you mean https://github.com/magit/forge ? Sounds like a great approach... instead of retrofitting support for one of those, it seems much better to start with a generic/modular approach... :)

anarcat avatar Dec 01 '18 14:12 anarcat

My thoughts precisely 😄

vermiculus avatar Dec 02 '18 18:12 vermiculus