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

11 lines
416 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
class ProjectHook < WebHook
belongs_to :project
scope :issue_hooks, -> { where(issues_events: true) }
2015-09-11 14:41:01 +05:30
scope :note_hooks, -> { where(note_events: true) }
2014-09-02 18:07:02 +05:30
scope :merge_request_hooks, -> { where(merge_requests_events: true) }
2015-12-23 02:04:40 +05:30
scope :build_hooks, -> { where(build_events: true) }
2016-09-13 17:45:13 +05:30
scope :pipeline_hooks, -> { where(pipeline_events: true) }
2016-06-02 11:05:42 +05:30
scope :wiki_page_hooks, -> { where(wiki_page_events: true) }
2014-09-02 18:07:02 +05:30
end