Method: Gitlab::Client::Projects#project_hook

Defined in:
lib/gitlab/client/projects.rb

#project_hook(project, id) ⇒ Gitlab::ObjectifiedHash

Gets a project hook.

Examples:

Gitlab.project_hook(42, 5)
Gitlab.project_hook('gitlab', 5)

Parameters:

  • project (Integer, String)

    The ID or path of a project.

  • id (Integer)

    The ID of a hook.

Returns:


207
208
209
# File 'lib/gitlab/client/projects.rb', line 207

def project_hook(project, id)
  get("/projects/#{url_encode project}/hooks/#{id}")
end