-
- Downloads
Make the new repository_update_events configurable in System Hooks UI
parent
f6619809
No related branches found
No related tags found
Showing
- app/controllers/admin/hooks_controller.rb 1 addition, 0 deletionsapp/controllers/admin/hooks_controller.rb
- app/models/hooks/system_hook.rb 3 additions, 0 deletionsapp/models/hooks/system_hook.rb
- app/views/admin/hooks/_form.html.haml 8 additions, 1 deletionapp/views/admin/hooks/_form.html.haml
- app/views/admin/hooks/index.html.haml 1 addition, 1 deletionapp/views/admin/hooks/index.html.haml
- spec/controllers/admin/hooks_controller_spec.rb 28 additions, 0 deletionsspec/controllers/admin/hooks_controller_spec.rb
- spec/models/hooks/system_hook_spec.rb 13 additions, 0 deletionsspec/models/hooks/system_hook_spec.rb
class SystemHook < WebHook | ||
scope :repository_update_hooks, -> { where(repository_update_events: true) } | ||
default_value_for :push_events, false | ||
default_value_for :repository_update_events, true | ||
|
||
def async_execute(data, hook_name) | ||
Sidekiq::Client.enqueue(SystemHookWorker, id, data, hook_name) | ||
end | ||
Loading
| Loading
|