Class: RightHook::Commenter
- Inherits:
-
AuthenticatedClient
- Object
- AuthenticatedClient
- RightHook::Commenter
- Defined in:
- lib/right_hook/commenter.rb
Overview
Provides an interface for adding comments on GitHub
Instance Method Summary collapse
Methods inherited from AuthenticatedClient
Constructor Details
This class inherits a constructor from RightHook::AuthenticatedClient
Instance Method Details
#comment_on_issue(owner, repo_name, issue_number, comment) ⇒ Object
8 9 10 11 |
# File 'lib/right_hook/commenter.rb', line 8 def comment_on_issue(owner, repo_name, issue_number, comment) result = client.add_comment("#{owner}/#{repo_name}", issue_number, comment) RightHook.logger.info("Result of comment_on_issue: #{result}") end |