module Octokit::Client::Labels

def update_label(repo, label, options = {})

Other tags:
    Example: Update the label "Version 1.0" with new color "#cceeaa" -

Other tags:
    See: https://developer.github.com/v3/issues/labels/#update-a-label -

Returns:
  • (Sawyer::Resource) - The updated label

Options Hash: (**options)
  • :color (String) -- An updated color value, in hex, without leading #
  • :name (String) -- An updated label name

Parameters:
  • options (Hash) -- A customizable set of options.
  • label (String) -- The name of the label which will be updated
  • repo (Integer, String, Repository, Hash) -- A GitHub repository
def update_label(repo, label, options = {})
  patch "#{Repository.path repo}/labels/#{ERB::Util.url_encode(label)}", options
end