Class: Pronto::Formatter::CommitFormatter
Instance Method Summary
collapse
#client_module, #format, #pretty_name
Methods inherited from Base
#config, name
Instance Method Details
4
5
6
7
8
|
# File 'lib/pronto/formatter/commit_formatter.rb', line 4
def (messages, client, _)
shas = messages.map(&:commit_sha)
= shas.flat_map { |sha| client.(sha) }
()
end
|
10
11
12
13
14
15
|
# File 'lib/pronto/formatter/commit_formatter.rb', line 10
def (client, )
.each { || client.() }
rescue Octokit::UnprocessableEntity, HTTParty::Error => e
$stderr.puts "Failed to post: #{e.message}"
$stderr.puts e.inspect
end
|