Method: CIRunner::Client::Github#commit_statuses

Defined in:
lib/ci_runner/client/github.rb

#commit_statuses(repository, commit) ⇒ Hash

Makes an API request to get the Commit statuses for the commit.

Parameters:

  • repository (String)

    The full repository name, including the owner (rails/rails)

  • commit (String)

    The Git commit that has been pushed to GitHub.

Returns:

  • (Hash)

    See GitHub documentation.

See Also:



45
46
47
# File 'lib/ci_runner/client/github.rb', line 45

def commit_statuses(repository, commit)
  get("/repos/#{repository}/commits/#{commit}/statuses")
end