Method: Gitlab::Client::GroupLabels#create_group_label
- Defined in:
- lib/gitlab/client/group_labels.rb
#create_group_label(group, name, color, options = {}) ⇒ Gitlab::ObjectifiedHash
Creates a new group label.
31 32 33 |
# File 'lib/gitlab/client/group_labels.rb', line 31 def create_group_label(group, name, color, = {}) post("/groups/#{url_encode group}/labels", body: .merge(name: name, color: color)) end |