67P / hubot-kredits

Kosmos Kredits chat/service integrations
https://wiki.kosmos.org/Kredits
MIT License
2 stars 1 forks source link

Add support for Gitea org hooks #24

Closed raucao closed 5 years ago

raucao commented 5 years ago

Turns out Gitea is not just pretty great overall, but also perfect for this use case. It supports both organization-wide webhooks, as well as custom label sets that one can select when creating a new repo. So we created a Kosmos label set, with both our preferred normal labels, as well as the kredits labels. See https://gitea.kosmos.org/kosmos/gitea.kosmos.org/labels for example.

The org hook for Kosmos can be created here: https://gitea.kosmos.org/org/kosmos/settings/hooks

raucao commented 5 years ago

Actually, the headers in the webhook doc suggest that the hooks might be the exact same format as GitHub's hooks. So this might be even easier than I thought.

bumi commented 5 years ago

:+1: would be nice to add this soon as the plan was to use more gitea

raucao commented 5 years ago

Yes! Also, because we already have some things there, like the Kosmos Chef repo. Should be easy enough. Will give it a shot soon.