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: 836a75b0608d11ca3ae693f01fb5bc15e17dede4 (plain)
1
2
3
4
5
6
7
8
9
10
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 :pipeline_hooks, -> { where(pipeline_events: true) }
  scope :wiki_page_hooks, ->  { where(wiki_page_events: true) }
end