prontolabs/pronto

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module Pronto
  module Formatter
    class BitbucketFormatter < CommitFormatter
      def self.name
        'bitbucket'
      end

      def client_module
        Bitbucket
      end

      def pretty_name
        'BitBucket'
      end

      def line_number(message, _)
        message.line.new_lineno if message.line
      end
    end
  end
end

Pronto::Formatter.register(Pronto::Formatter::BitbucketFormatter)