Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for gitlab: ... #419

Open
sol opened this issue Jan 16, 2021 · 3 comments
Open

Add support for gitlab: ... #419

sol opened this issue Jan 16, 2021 · 3 comments

Comments

@sol
Copy link
Owner

sol commented Jan 16, 2021

Add a gitlab: ... analog to github: ....

Example packages that could benefit from this:

(more: https://www.google.com/search?q=site%3Ahackage.haskell.org+intext%3Agitlab+-gitlab-haskell+-gitlab-api+-vcs-web-hook-parse+-gli+-yesod-auth-oauth2&oq=site%3Ahackage.haskell.org+intext%3Agitlab+-gitlab-haskell+-gitlab-api+-vcs-web-hook-parse+-gli+-yesod-auth-oauth2)

Request before by @dpwiz (#79).

@mgajda
Copy link

mgajda commented Jan 26, 2021

Since I moved to GitLab from GitHub, all my packages would benefit too: https://gitlab.com/migamake

@dpwiz
Copy link

dpwiz commented Jun 16, 2021

I were frustrated once again with github plastered everywhere and tried to add a gitlab field... Then I remembered there are more services and projects like gitea make those even more desirable.

Good news: There's even a common schema https://<service>/<owner>/<repo>[/subdirs...]
Bad news: "owner" can also be a nested subgroup path inside a project group. That's gonna clash with #444.

Anyway, simply recognizing gitlab: field can do some good with minimal maintenance.
Perhaps a unified type based upon Hpack.Config.GitHub may serve the purpose. It can be extended with the "well-known" field that'll provide the URL template.

And a way to extend support toward self-hosted repos may be devised next.

@dpwiz
Copy link

dpwiz commented Dec 16, 2021

There is a vcs/forge discovery protocol in the works talks, originating from godocs.io:

https://lists.sr.ht/~ancarda/vcs-autodiscovery/%3CCFA7DXTFDWXD.1YR4U9KQT6YJ0%40nitro%3E

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants