class Github::Issues::Labels
def list(user_name, repo_name, params={})
github.issues.labels.list { |label| ... }
github.issues.labels.list
github = Github.new :user => 'user-name', :repo => 'repo-name'
= Examples
List all labels for a repository
def list(user_name, repo_name, params={}) _update_user_repo_params(user_name, repo_name) _validate_user_repo_params(user, repo) unless user? && repo? normalize! params response = get_request("/repos/#{user}/#{repo}/labels", params) return response unless block_given? response.each { |el| yield el } end