class Pronto::Formatter::GitFormatter

def format(messages, repo, patches)

def format(messages, repo, patches)
  client = client_module.new(repo)
  existing = existing_comments(messages, client, repo)
  comments = new_comments(messages, patches)
  additions = remove_duplicate_comments(existing, comments)
  submit_comments(client, additions)
  
  approve_pull_request(comments.count, additions.count, client) if defined?(self.approve_pull_request)
  "#{additions.count} Pronto messages posted to #{pretty_name} (#{existing.count} existing)"
end