Sha256: aeb528846030152122ec715ef3ae41756cac86dbf14a33cf3f3fef1d2ef3f36c
Contents?: true
Size: 578 Bytes
Versions: 2
Compression:
Stored size: 578 Bytes
Contents
module Pronto module Formatter class CommitFormatter < GitFormatter def existing_comments(messages, client, repo) shas = messages.map(&:commit_sha) comments = shas.flat_map { |sha| client.commit_comments(sha) } grouped_comments(comments) end def submit_comments(client, comments) comments.each { |comment| client.create_commit_comment(comment) } rescue Octokit::UnprocessableEntity, HTTParty::Error => e $stderr.puts "Failed to post: #{e.message}" $stderr.puts e.inspect end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pronto-0.8.2 | lib/pronto/formatter/commit_formatter.rb |
pronto-0.8.1 | lib/pronto/formatter/commit_formatter.rb |