Class: Pronto::Formatter::CommitFormatter
Instance Method Summary
collapse
#client_module, #format, #pretty_name
Instance Method Details
4
5
6
7
|
# File 'lib/pronto/formatter/commit_formatter.rb', line 4
def (client, sha)
= client.(sha)
()
end
|
#line_number(message, _) ⇒ Object
9
10
11
|
# File 'lib/pronto/formatter/commit_formatter.rb', line 9
def line_number(message, _)
message.line.new_lineno
end
|
13
14
15
16
17
18
|
# File 'lib/pronto/formatter/commit_formatter.rb', line 13
def (client, )
.each { || client.() }
rescue Octokit::UnprocessableEntity, HTTParty::Error => e
$stderr.puts "Failed to post: #{e.message}"
$stderr.puts e.inspect
end
|