debian-mirror-gitlab/app/models/hooks/system_hook.rb

22 lines
452 B
Ruby
Raw Normal View History

2018-11-20 20:47:30 +05:30
# frozen_string_literal: true
2014-09-02 18:07:02 +05:30
class SystemHook < WebHook
2018-03-17 18:26:18 +05:30
include TriggerableHooks
2017-09-10 17:25:29 +05:30
2018-03-17 18:26:18 +05:30
triggerable_hooks [
:repository_update_hooks,
:push_hooks,
:tag_push_hooks,
:merge_request_hooks
]
2017-09-10 17:25:29 +05:30
default_value_for :push_events, false
default_value_for :repository_update_events, true
2018-03-17 18:26:18 +05:30
default_value_for :merge_requests_events, false
2018-11-08 19:23:39 +05:30
# Allow urls pointing localhost and the local network
def allow_local_requests?
true
end
2014-09-02 18:07:02 +05:30
end