Git(Lab|Hub) integration with #cdist:ungleich.ch #59

Closed
opened 2021-11-20 11:25:18 +00:00 by ungleich-gitea · 17 comments

There's Maubot with plugins for GitLab and GitHub integrations.

Using this bot we can bridge Git(Lab|Hub) into #cdist:ungleich.ch - event notifications about new issues, requests, commits etc.

IMHO that would be really convenient and cool!

I'm ready to manage this service myself, but for that I need resources and support from Ungleich's side.

What's needed:

  • small IPv4 enabled virtual machine with (sub)domain attached to it (1 VCPU, 1 GB RAM, 3 GB DISK)
  • two users in Ungleich's Matrix server for GitLab and GitHub bots
  • separate user in GitHub for OAuth Apps and webhook access in cdist project
  • for GitLab every project must configure webhook againast muabot HTTPS service

(Sub)domain (with "green" certificate) is needed, because of Authorization callback URL in GitHub.

It's possible to run both integrations with one bot, but separate bots is way more cooler.

I hope Ungleich can provide VM and someone with enough access in Git(Lab|Hub) to set up integrations.

If we are going forward, separate cdist-maubot project should be created so I have place to commit manifest and all related documentation.

ping @nico @llnu @fnux

There's [Maubot](https://github.com/maubot/maubot) with plugins for [GitLab](https://github.com/maubot/gitlab) and [GitHub](https://github.com/maubot/github) integrations. Using this bot we can bridge Git(Lab|Hub) into `#cdist:ungleich.ch` - event notifications about new issues, requests, commits etc. IMHO that would be really convenient and cool! I'm ready to manage this service myself, but for that I need resources and support from Ungleich's side. What's needed: * small IPv4 enabled virtual machine with (sub)domain attached to it (1 VCPU, 1 GB RAM, 3 GB DISK) * two users in Ungleich's Matrix server for GitLab and GitHub bots * separate user in GitHub for OAuth Apps and webhook access in [cdist project](https://github.com/ungleich/cdist) * for GitLab every project must configure webhook againast muabot HTTPS service (Sub)domain (with "green" certificate) is needed, because of *Authorization callback URL* in GitHub. It's possible to run both integrations with one bot, but separate bots is way more cooler. I hope Ungleich can provide VM and someone with enough access in Git(Lab|Hub) to set up integrations. If we are going forward, separate `cdist-maubot` project should be created so I have place to commit manifest and all related documentation. ping @nico @llnu @fnux
ander was assigned by ungleich-gitea 2021-11-20 11:25:18 +00:00
Author
Owner

closed

closed
Author
Owner

meanwhile added __apt_unattended_upgrades to the mix and calling it done.

for @nico and @fnux - there's cdist-matrix-integration:/root/README file with creds n stuff.

meanwhile added `__apt_unattended_upgrades` to the mix and calling it done. for @nico and @fnux - there's `cdist-matrix-integration:/root/README` file with creds n stuff.
Author
Owner

thanks :)

thanks :)
Author
Owner

I reduced github to PRs only.

I reduced github to PRs only.
Author
Owner

someone with enough perms have to tune github project's webhook to only send new PR information.

someone with enough perms have to tune github project's webhook to only send new PR information.
Author
Owner

GitHub commit messages are annoying in chat. Ander said he can't do this anymore, can someone other do that?

GitHub commit messages are annoying in chat. Ander said he can't do this anymore, can someone other do that?
Author
Owner

github is now configured as well.

I enabled all events for GitHub. lets see how annyoing it becomes 😄

github is now configured as well. I enabled all events for GitHub. lets see how annyoing it becomes :smile:
Author
Owner

assigned to @ander and unassigned @fnux

assigned to @ander and unassigned @fnux
Author
Owner

VM is up and running, thanks @fnux.

GitHub plugin maintainer added support for webhooks without OAuth App.

GitLab plugin is bit broken atm, will do some debugging.

VM is up and running, thanks @fnux. GitHub plugin maintainer added support for webhooks without OAuth App. GitLab plugin is bit broken atm, will do some debugging.
Author
Owner

lets wait a bit with GitHub.

I'll try to figure out if that OAuth App is even needed and maybe we can fly only with webhook.

lets wait a bit with Git**Hub**. I'll try to figure out if that OAuth App is even needed and maybe we can fly only with webhook.
Author
Owner

make following bot users: @gitlab:ungleich.ch and @github:ungleich.ch

make following bot users: `@gitlab:ungleich.ch` and `@github:ungleich.ch`
Author
Owner

latest Debian Stable.

latest Debian Stable.
Author
Owner

two users in Ungleich's Matrix server for GitLab and GitHub bots

I'll allocate them later today.

separate user in GitHub for OAuth Apps and webhook access in cdist project

CC @nico for github-related things.

> two users in Ungleich's Matrix server for GitLab and GitHub bots I'll allocate them later today. > separate user in GitHub for OAuth Apps and webhook access in [cdist project](https://github.com/ungleich/cdist) CC @nico for github-related things.
Author
Owner

small IPv4 enabled virtual machine with (sub)domain attached to it (1 VCPU, 1 GB RAM, 3 GB DISK)

I'll allocate am IPv6Only VM and point a domain there / configure the IPv4-to-IPv6 proxy for HTTP(s). You'll deal with the certificate yourself. What distribution do you want to use?

> small IPv4 enabled virtual machine with (sub)domain attached to it (1 VCPU, 1 GB RAM, 3 GB DISK) I'll allocate am IPv6Only VM and point a domain there / configure the IPv4-to-IPv6 proxy for HTTP(s). You'll deal with the certificate yourself. What distribution do you want to use?
Author
Owner

assigned to @fnux

assigned to @fnux
Author
Owner

changed the description

changed the description
Author
Owner

changed the description

changed the description
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#59
No description provided.