Class: Pronto::Formatter::GithubPullRequestFormatter
Class Method Summary
collapse
Instance Method Summary
collapse
#existing_comments, #submit_comments
#format
Methods inherited from Base
#config
Class Method Details
.name ⇒ Object
4
5
6
|
# File 'lib/pronto/formatter/github_pull_request_formatter.rb', line 4
def self.name
'github_pr'
end
|
Instance Method Details
#client_module ⇒ Object
8
9
10
|
# File 'lib/pronto/formatter/github_pull_request_formatter.rb', line 8
def client_module
Github
end
|
#line_number(message, patches) ⇒ Object
16
17
18
19
|
# File 'lib/pronto/formatter/github_pull_request_formatter.rb', line 16
def line_number(message, patches)
line = patches.find_line(message.full_path, message.line.new_lineno)
line.position
end
|
#pretty_name ⇒ Object
12
13
14
|
# File 'lib/pronto/formatter/github_pull_request_formatter.rb', line 12
def pretty_name
'GitHub'
end
|