gitlab-org--gitlab-foss/app/models/hooks/project_hook.rb
2018-01-17 09:55:00 +01:00

18 lines
334 B
Ruby

class ProjectHook < WebHook
include TriggerableHooks
triggerable_hooks [
:push_hooks,
:tag_push_hooks,
:issue_hooks,
:confidential_issue_hooks,
:note_hooks,
:merge_request_hooks,
:job_hooks,
:pipeline_hooks,
:wiki_page_hooks
]
belongs_to :project
validates :project, presence: true
end