diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/webhook/webhook.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/webhook/webhook.go b/modules/webhook/webhook.go index 2fab0803bc..75a81d2aff 100644 --- a/modules/webhook/webhook.go +++ b/modules/webhook/webhook.go @@ -181,6 +181,13 @@ func prepareWebhooks(repo *models.Repository, event models.HookEventType, p api. ws = append(ws, orgHooks...) } + // Add any admin-defined system webhooks + systemHooks, err := models.GetSystemWebhooks() + if err != nil { + return fmt.Errorf("GetSystemWebhooks: %v", err) + } + ws = append(ws, systemHooks...) + if len(ws) == 0 { return nil } |