lib/github_labeler.rb
#
# Create a single change for deleting a label from a repo
#
Create a single change for deleting a label from a repo
Create a single change for deleting a label from a repo
def delete_label_from_repo(repo, label, options = {})
    existing_label = @repo_labels[repo][label[:name].downcase]
    if existing_label
      return { :type => "delete", :repo => repo, :label => label }
    end
    @logger.warn "Label #{label[:name]} doesn't exist. No change created"
    return nil
  end
def delete_label_from_repo ( repo , label , options = { } ) existing_label = @repo_labels [ repo ] [ label [ :name ] . downcase ] if existing_label return { :type => "delete" , :repo => repo , :label => label } end @logger . warn "Label #{label[:name]} doesn't exist. No change created" return nil end
Create a single change for deleting a label from a repo
Create a single change for deleting a label from a repo
repo
label
options