summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-27 23:06:14 +0800
committerUnknwon <u@gogs.io>2015-08-27 23:06:14 +0800
commit23f42d92c917564435a00e8e75633b8056bd7b0d (patch)
tree6fed7f6df4c6b039e4e43eaae2fcd5788ddba3a0 /modules/setting
parentfc2d0e5470fa2fea260adba30866acda1aa945cb (diff)
downloadgitea-23f42d92c917564435a00e8e75633b8056bd7b0d.tar.gz
gitea-23f42d92c917564435a00e8e75633b8056bd7b0d.zip
add webhook recent deliveries
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/setting.go2
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() {