Class: Pronto::Formatter::BitbucketServerPullRequestFormatter

Inherits:
PullRequestFormatter show all
Defined in:
lib/pronto/formatter/bitbucket_server_pull_request_formatter.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from PullRequestFormatter

#existing_comments, #submit_comments

Methods inherited from GitFormatter

#format

Methods inherited from Base

#config

Class Method Details

.nameObject



4
5
6
# File 'lib/pronto/formatter/bitbucket_server_pull_request_formatter.rb', line 4

def self.name
  'bitbucket_server_pr'
end

Instance Method Details

#client_moduleObject



8
9
10
# File 'lib/pronto/formatter/bitbucket_server_pull_request_formatter.rb', line 8

def client_module
  BitbucketServer
end

#line_number(message, _) ⇒ Object



16
17
18
# File 'lib/pronto/formatter/bitbucket_server_pull_request_formatter.rb', line 16

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

#pretty_nameObject



12
13
14
# File 'lib/pronto/formatter/bitbucket_server_pull_request_formatter.rb', line 12

def pretty_name
  'BitBucket Server'
end