1
0
Fork 0
forked from forgejo/forgejo

[FEAT] sourcehut webhooks

(cherry picked from commit ed9dd0e62a)
This commit is contained in:
oliverpool 2024-03-13 16:49:48 +01:00 committed by GitHub
parent 4ad42a4e3f
commit 82b92c3f2c
28 changed files with 890 additions and 13 deletions

View file

@ -25,6 +25,7 @@ import (
"code.gitea.io/gitea/modules/util"
webhook_module "code.gitea.io/gitea/modules/webhook"
"code.gitea.io/gitea/services/forms"
"code.gitea.io/gitea/services/webhook/sourcehut"
"github.com/gobwas/glob"
)
@ -53,6 +54,7 @@ var webhookHandlers = []Handler{
matrixHandler{},
wechatworkHandler{},
packagistHandler{},
sourcehut.BuildsHandler{},
}
// GetWebhookHandler return the handler for a given webhook type (nil if not found)