Add Matrix webhook (#10831)
* Add Matrix webhook Signed-off-by: Till Faelligen <[email protected]> * Add template and related translations for Matrix hook Signed-off-by: Till Faelligen <[email protected]> * Add actual webhook routes and form Signed-off-by: Till Faelligen <[email protected]> * Add missing file Signed-off-by: Till Faelligen <[email protected]> * Update modules/webhook/matrix_test.go * Use stricter regex to replace URLs Signed-off-by: Till Faelligen <[email protected]> * Escape url and text Signed-off-by: Till Faelligen <[email protected]> * Remove unnecessary whitespace * Fix copy and paste mistake Co-Authored-By: Tulir Asokan <[email protected]> * Fix indention inconsistency * Use Authorization header instead of url parameter * Add raw commit information to webhook Co-authored-by: Lauris BH <[email protected]> Co-authored-by: Tulir Asokan <[email protected]>
This commit is contained in:
co-authored by
Lauris BH
Tulir Asokan
parent
7cd47046ea
commit
828a27feeb
@@ -36,7 +36,7 @@ func newWebhookService() {
|
||||
Webhook.QueueLength = sec.Key("QUEUE_LENGTH").MustInt(1000)
|
||||
Webhook.DeliverTimeout = sec.Key("DELIVER_TIMEOUT").MustInt(5)
|
||||
Webhook.SkipTLSVerify = sec.Key("SKIP_TLS_VERIFY").MustBool()
|
||||
Webhook.Types = []string{"gitea", "gogs", "slack", "discord", "dingtalk", "telegram", "msteams", "feishu"}
|
||||
Webhook.Types = []string{"gitea", "gogs", "slack", "discord", "dingtalk", "telegram", "msteams", "feishu", "matrix"}
|
||||
Webhook.PagingNum = sec.Key("PAGING_NUM").MustInt(10)
|
||||
Webhook.ProxyURL = sec.Key("PROXY_URL").MustString("")
|
||||
if Webhook.ProxyURL != "" {
|
||||
|
||||
Reference in New Issue
Block a user