diff options
Diffstat (limited to 'app/models/hooks/system_hook.rb')
-rw-r--r-- | app/models/hooks/system_hook.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/app/models/hooks/system_hook.rb b/app/models/hooks/system_hook.rb index 1584235ab00..0528266e5b3 100644 --- a/app/models/hooks/system_hook.rb +++ b/app/models/hooks/system_hook.rb @@ -1,6 +1,14 @@ class SystemHook < WebHook - scope :repository_update_hooks, -> { where(repository_update_events: true) } + include TriggerableHooks + + triggerable_hooks [ + :repository_update_hooks, + :push_hooks, + :tag_push_hooks, + :merge_request_hooks + ] default_value_for :push_events, false default_value_for :repository_update_events, true + default_value_for :merge_requests_events, false end |