class Pronto::Formatter::GithubPullRequestReviewFormatter

def client_module

def client_module
  Github
end

def line_number(message, patches)

def line_number(message, patches)
  line = patches.find_line(message.full_path, message.line.new_lineno)
  line.position
end

def pretty_name

def pretty_name
  'GitHub'
end

def submit_comments(client, comments)

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