Welcome to mirror list, hosted at ThFree Co, Russian Federation.

system_hook.rb « hooks « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c645805c6dab13eef742a7d55830e8aa55c9efcb (plain)
1
2
3
4
5
6
7
8
9
10
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
end