Class: Jiminy::Reporting::Reporters::GithubReporter
- Inherits:
-
BaseReporter
- Object
- BaseReporter
- Jiminy::Reporting::Reporters::GithubReporter
- Includes:
- GithubAPIable
- Defined in:
- lib/jiminy/reporting/reporters/github_reporter.rb
Instance Method Summary collapse
-
#initialize(header:, body:, pr_number:) ⇒ GithubReporter
constructor
A new instance of GithubReporter.
- #report! ⇒ Object
Constructor Details
#initialize(header:, body:, pr_number:) ⇒ GithubReporter
Returns a new instance of GithubReporter.
11 12 13 14 |
# File 'lib/jiminy/reporting/reporters/github_reporter.rb', line 11 def initialize(header:, body:, pr_number:) super(header: header, body: body) @pr_number = pr_number end |
Instance Method Details
#report! ⇒ Object
16 17 18 |
# File 'lib/jiminy/reporting/reporters/github_reporter.rb', line 16 def report! client.add_comment(env_config.repo_path, pr_number, comment_body) end |