class Linterbot::TTYPullRequestCommenter
Attributes
pull_request_number[RW]
repository[RW]
Public Class Methods
new(repository, pull_request_number, github_client)
click to toggle source
# File lib/linterbot/tty_pull_request_commenter.rb, line 8 def initialize(repository, pull_request_number, github_client) @repository = repository @pull_request_number = pull_request_number end
Public Instance Methods
publish_comment(comment)
click to toggle source
# File lib/linterbot/tty_pull_request_commenter.rb, line 13 def publish_comment(comment) puts "#{repository}##{pull_request_number}" puts "#{comment.sha} - #{comment.file}" puts "#{comment.severity} - #{comment.message}" puts "" end
publish_summary(summary)
click to toggle source
# File lib/linterbot/tty_pull_request_commenter.rb, line 20 def publish_summary(summary) puts summary end