class Pronto::Formatter::GitlabMergeRequestReviewFormatter
def self.name
def self.name 'gitlab_mr' end
def client_module
def client_module Gitlab end
def existing_comments(_, client, repo)
def existing_comments(_, client, repo) sha = repo.head_commit_sha comments = client.pull_comments(sha) grouped_comments(comments) end
def line_number(message, _)
def line_number(message, _) message.line.line.new_lineno if message.line end
def pretty_name
def pretty_name 'Gitlab' end
def submit_comments(client, comments)
def submit_comments(client, comments) client.create_pull_request_review(comments) rescue => e $stderr.puts "Failed to post: #{e.message}" end