class Pronto::Formatter::GithubPullRequestReviewFormatter
Public Class Methods
Source
# File lib/pronto/formatter/github_pull_request_review_formatter.rb, line 4 def self.name 'github_pr_review' end
Public Instance Methods
Source
# File lib/pronto/formatter/github_pull_request_review_formatter.rb, line 8 def client_module Github end
Source
# File lib/pronto/formatter/github_pull_request_review_formatter.rb, line 22 def line_number(message, _) message.line&.new_lineno end
Source
# File lib/pronto/formatter/github_pull_request_review_formatter.rb, line 12 def pretty_name 'GitHub' end
Source
# File lib/pronto/formatter/github_pull_request_review_formatter.rb, line 16 def submit_comments(client, comments) client.publish_pull_request_comments(comments) rescue Octokit::UnprocessableEntity, HTTParty::Error => e $stderr.puts "Failed to post: #{e.message}" end