module Gitlab::Client::Labels
def create_label(project, name, color, options = {})
-
(Gitlab::ObjectifiedHash)
- Information about created 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.
Parameters:
-
options
(Hash
) -- A customizable set of options. -
color
(String
) -- The color of a label. -
name
(String
) -- The name of a label. -
project
(Integer, String
) -- The ID or name of a project.
def create_label(project, name, color, options = {}) post("/projects/#{url_encode project}/labels", body: options.merge(name: name, color: color)) end