bridgy icon indicating copy to clipboard operation
bridgy copied to clipboard

Bridgy Publish feature request: Support posting to GitLab sites

Open tantek opened this issue 1 year ago • 6 comments

It would be great if there was a way to post issues & comments for GitLab repos, on a personal site, and have Bridgy Publish syndicate them to the actual GitLab repos. e.g. feature requests to Pleroma:

Such as:

  • Implement IndieAuth support (both sign-in with IndiAuth, and use of a Pleroma profile as an IndieAuth identity to sign-in elsewhere)
  • Implement Micropub server support
  • Implement Webmention support, sending & receiving

(Originally published at: https://tantek.com/2023/019/b1/bridgy-publish-support-gitlab)

tantek avatar Jan 19 '23 23:01 tantek

Definitely! New silo instructions, for posterity: https://bridgy.readthedocs.io/#adding-a-new-silo

snarfed avatar Jan 19 '23 23:01 snarfed

APIs for issues and comments look pretty complete.

snarfed avatar Jan 19 '23 23:01 snarfed

If someone wanted to give this a try, would you recommand or caution against using the python client library https://python-gitlab.readthedocs.io/ ?

jpcaruana avatar Aug 11 '23 11:08 jpcaruana

Hmm! I don't know. For conventional REST APIs that use OAuth 2 and accept and return JSON, those are simple enough that I'm now generally trying to avoid libraries and just use eg requests and requests-oauthlib directly. I don't feel strongly though, I'm ok with a lib if there's a good reason!

First step would be to add GitLab to oauth-dropins, which I'd definitely recommend doing with eg requests-oauthlib, not a GitLab-specific library. Instructions here.

I'm also curious if there's any parity between the GitHub and GitLab APIs? eg I noticed that GitLab has both REST and GraphQL APIs, like GitHub. Not important though.

snarfed avatar Aug 11 '23 16:08 snarfed

I'm now generally trying to avoid libraries and just use eg requests and requests-oauthlib directly.

I aggree with you.

I noticed that GitLab has both REST and GraphQL APIs, like GitHub

Gitlab REST API is pretty simple to use. The only issue I can see here is: would we take into account self-hosted Gitlab instances?

jpcaruana avatar Aug 12 '23 09:08 jpcaruana

The only issue I can see here is: would we take into account self-hosted Gitlab instances?

Maybe eventually, but I wouldn't worry about it for our first pass.

snarfed avatar Aug 13 '23 00:08 snarfed