Method: Gitlab::Client::Projects#project_hooks

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

#project_hooks(project, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>

Gets a list of project hooks.

Examples:

Gitlab.project_hooks(42)
Gitlab.project_hooks('gitlab')

Parameters:

  • project (Integer, String)

    The ID or path of a project.

  • options (Hash) (defaults to: {})

    A customizable set of options.

Options Hash (options):

  • :page (Integer)

    The page number.

  • :per_page (Integer)

    The number of results per page.

Returns:



194
195
196
# File 'lib/gitlab/client/projects.rb', line 194

def project_hooks(project, options = {})
  get("/projects/#{url_encode project}/hooks", query: options)
end