class Github::Client::Repos::Statuses

involving those commits.
failure, error, or pending state, which is then reflected in pull requests
The Status API allows external services to mark commits with a success,

def create(*args)

Other tags:
    Api: - public

Parameters:
  • params (Hash) --
def create(*args)
  arguments(args, required: [:user, :repo, :sha]) do
    permit VALID_STATUS_PARAM_NAMES, recursive: false
    assert_required REQUIRED_PARAMS
  end
  post_request("/repos/#{arguments.user}/#{arguments.repo}/statuses/#{arguments.sha}", arguments.params)
end

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