prontolabs/pronto

View on GitHub
lib/pronto/formatter/github_pull_request_formatter.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
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)