module Gitlab::Client::Labels
def edit_label(project, name, options = {})
-
(Gitlab::ObjectifiedHash)
- Information about updated label.
Options Hash:
(**options)
-
:priority
(String
) -- The priority of the label. Must be greater or equal than zero or null to remove the priority. -
:description
(String
) -- The description of the label. -
:color
(String
) -- The color of a label. -
:new_name
(String
) -- The new name of a label.
Parameters:
-
options
(Hash
) -- A customizable set of options. -
name
(String
) -- The name of a label. -
project
(Integer, String
) -- The ID or name of a project.
def edit_label(project, name, options = {}) put("/projects/#{url_encode project}/labels", body: options.merge(name: name)) end