Sha256: 67f589ee0b93e6975540e1ca01f35c2c0071cd725769abc4fe678d157446794c
Contents?: true
Size: 575 Bytes
Versions: 1
Compression:
Stored size: 575 Bytes
Contents
module Pronto module Formatter class CommitFormatter < GitFormatter def existing_comments(client, sha) comments = client.commit_comments(sha) grouped_comments(comments) end def line_number(message) message.line.new_lineno 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pronto-0.7.0 | lib/pronto/formatter/commit_formatter.rb |