Class: CircleCI::CoverageReporter::GitHubClient

Inherits:
AbstractVCSClient show all
Defined in:
lib/circleci/coverage_reporter/github_client.rb

Instance Method Summary collapse

Methods inherited from AbstractVCSClient

#initialize

Constructor Details

This class inherits a constructor from CircleCI::CoverageReporter::AbstractVCSClient

Instance Method Details

#create_comment(reports) ⇒ void

This method returns an undefined value.

Parameters:

Raises:



11
12
13
14
15
# File 'lib/circleci/coverage_reporter/github_client.rb', line 11

def create_comment(reports)
  resp = request(reports)
  body = JSON.parse(resp.body)
  raise RequestError.new(body['message'], resp) unless resp.success?
end