right_hook 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/right_hook/commenter.rb +3 -1
- data/lib/right_hook/version.rb +1 -1
- metadata +1 -1
data/lib/right_hook/commenter.rb
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
require 'right_hook/authenticated_client'
|
2
|
+
require 'right_hook/logger'
|
2
3
|
require 'octokit'
|
3
4
|
|
4
5
|
module RightHook
|
5
6
|
# Provides an interface for adding comments on GitHub
|
6
7
|
class Commenter < AuthenticatedClient
|
7
8
|
def comment_on_issue(owner, repo_name, issue_number, comment)
|
8
|
-
client.add_comment("#{owner}/#{repo_name}", issue_number, comment)
|
9
|
+
result = client.add_comment("#{owner}/#{repo_name}", issue_number, comment)
|
10
|
+
RightHook.logger.info("Result of comment_on_issue: #{result}")
|
9
11
|
end
|
10
12
|
end
|
11
13
|
end
|
data/lib/right_hook/version.rb
CHANGED