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

project_hook.rb « hooks « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ba42a8eeb70bdd30a2bb84bee4535eafea8e1a3d (plain)
1
2
3
4
5
6
7
8
9
class ProjectHook < WebHook
  belongs_to :project

  scope :issue_hooks, -> { where(issues_events: true) }
  scope :note_hooks, -> { where(note_events: true) }
  scope :merge_request_hooks, -> { where(merge_requests_events: true) }
  scope :build_hooks, -> { where(build_events: true) }
  scope :wiki_page_hooks, ->  { where(wiki_page_events: true) }
end