Method: Octokit::Client::Checks#update_check_run

Defined in:
lib/octokit/client/checks.rb

#update_check_run(repo, id, options = {}) ⇒ Sawyer::Resource

Update a check run

Examples:

Update a check run

check_run = @client.update_check_run("octocat/Hello-World", 51295429, status: "in_progress")
check_run.id # => 51295429
check_run.status # => "in_progress"

Parameters:

  • repo (Integer, String, Hash, Repository)

    A GitHub repository

  • id (Integer)

    The ID of the check run

Returns:

  • (Sawyer::Resource)

    A hash representing the updated check run

See Also:


42
43
44
# File 'lib/octokit/client/checks.rb', line 42

def update_check_run(repo, id, options = {})
  patch "#{Repository.path repo}/check-runs/#{id}", options
end