diff options
author | Unknwon <u@gogs.io> | 2015-08-27 23:06:14 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-27 23:06:14 +0800 |
commit | 23f42d92c917564435a00e8e75633b8056bd7b0d (patch) | |
tree | 6fed7f6df4c6b039e4e43eaae2fcd5788ddba3a0 /modules/setting | |
parent | fc2d0e5470fa2fea260adba30866acda1aa945cb (diff) | |
download | gitea-23f42d92c917564435a00e8e75633b8056bd7b0d.tar.gz gitea-23f42d92c917564435a00e8e75633b8056bd7b0d.zip |
add webhook recent deliveries
Diffstat (limited to 'modules/setting')
-rw-r--r-- | modules/setting/setting.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index f008f81a07..05f4556a48 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -82,6 +82,7 @@ var ( DeliverTimeout int SkipTLSVerify bool Types []string + PagingNum int } // Repository settings. @@ -601,6 +602,7 @@ func newWebhookService() { Webhook.DeliverTimeout = sec.Key("DELIVER_TIMEOUT").MustInt(5) Webhook.SkipTLSVerify = sec.Key("SKIP_TLS_VERIFY").MustBool() Webhook.Types = []string{"gogs", "slack"} + Webhook.PagingNum = sec.Key("PAGING_NUM").MustInt(10) } func NewServices() { |