class Github::Client::Repos::Statuses

def list(*args)

Other tags:
    Api: - public

Parameters:
  • :ref (String) --
def list(*args)
  arguments(args, required: [:user, :repo, :ref])
  params = arguments.params
  user, repo, ref = arguments.user, arguments.repo, arguments.ref
  response = if params.delete('combined')
    get_request("/repos/#{user}/#{repo}/commits/#{ref}/status", params)
  else
    get_request("/repos/#{user}/#{repo}/commits/#{ref}/statuses", params)
  end
  return response unless block_given?
  response.each { |el| yield el }
end