aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting/webhook.go
diff options
context:
space:
mode:
authorDr. Tobias Quathamer <toddy15@users.noreply.github.com>2022-01-23 14:46:30 +0100
committerGitHub <noreply@github.com>2022-01-23 21:46:30 +0800
commit3349fd8f7901d9a04769dff71d86fb67374e9395 (patch)
treedc0fecab704696b3106761e9feb41b8670f03fd4 /modules/setting/webhook.go
parent87141b908d4a03ce27af3ce042dc417da925b84f (diff)
downloadgitea-3349fd8f7901d9a04769dff71d86fb67374e9395.tar.gz
gitea-3349fd8f7901d9a04769dff71d86fb67374e9395.zip
Add packagist webhook (#18224)
Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'modules/setting/webhook.go')
-rw-r--r--modules/setting/webhook.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/webhook.go b/modules/setting/webhook.go
index b576f9573b..0bfd7dcb4d 100644
--- a/modules/setting/webhook.go
+++ b/modules/setting/webhook.go
@@ -36,7 +36,7 @@ func newWebhookService() {
Webhook.DeliverTimeout = sec.Key("DELIVER_TIMEOUT").MustInt(5)
Webhook.SkipTLSVerify = sec.Key("SKIP_TLS_VERIFY").MustBool()
Webhook.AllowedHostList = sec.Key("ALLOWED_HOST_LIST").MustString("")
- Webhook.Types = []string{"gitea", "gogs", "slack", "discord", "dingtalk", "telegram", "msteams", "feishu", "matrix", "wechatwork"}
+ Webhook.Types = []string{"gitea", "gogs", "slack", "discord", "dingtalk", "telegram", "msteams", "feishu", "matrix", "wechatwork", "packagist"}
Webhook.PagingNum = sec.Key("PAGING_NUM").MustInt(10)
Webhook.ProxyURL = sec.Key("PROXY_URL").MustString("")
if Webhook.ProxyURL != "" {