Method: Gitlab::Client::Labels#labels

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

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

Gets a list of project’s labels.

Examples:

Gitlab.labels(5)

Parameters:

  • project (Integer, String)

    The ID or name of a project.

Returns:



14
15
16
# File 'lib/gitlab/client/labels.rb', line 14

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