2012-11-19 13:24:05 -05:00
|
|
|
class ProjectHook < WebHook
|
|
|
|
belongs_to :project
|
2013-12-02 14:38:32 -05:00
|
|
|
|
2013-12-03 04:31:56 -05:00
|
|
|
scope :issue_hooks, -> { where(issues_events: true) }
|
2016-08-30 18:11:46 -04:00
|
|
|
scope :confidential_issue_hooks, -> { where(confidential_issues_events: true) }
|
2015-05-16 02:33:31 -04:00
|
|
|
scope :note_hooks, -> { where(note_events: true) }
|
2013-12-03 04:31:56 -05:00
|
|
|
scope :merge_request_hooks, -> { where(merge_requests_events: true) }
|
2015-12-07 07:23:23 -05:00
|
|
|
scope :build_hooks, -> { where(build_events: true) }
|
2016-08-02 06:06:31 -04:00
|
|
|
scope :pipeline_hooks, -> { where(pipeline_events: true) }
|
2016-02-28 02:26:52 -05:00
|
|
|
scope :wiki_page_hooks, -> { where(wiki_page_events: true) }
|
2012-11-19 13:24:05 -05:00
|
|
|
end
|