lib/pronto/formatter/github_pull_request_formatter.rb
module Pronto
module Formatter
class GithubPullRequestFormatter < PullRequestFormatter
def self.name
'github_pr'
end
def client_module
Github
end
def pretty_name
'GitHub'
end
def line_number(message, _)
message.line&.new_lineno
end
end
end
end
Pronto::Formatter.register(Pronto::Formatter::GithubPullRequestFormatter)