Method: CIRunner::Client::Github#check_runs

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

#check_runs(repository, commit) ⇒ Hash

Makes an API request to get the CI checks 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:



33
34
35
# File 'lib/ci_runner/client/github.rb', line 33

def check_runs(repository, commit)
  get("/repos/#{repository}/commits/#{commit}/check-runs")
end