Sha256: b99b23e8df58be0d736000f19c87fdacdb8212d6bf17dc8fb347d5908d0f0d6f
Contents?: true
Size: 553 Bytes
Versions: 2
Compression:
Stored size: 553 Bytes
Contents
module Pronto module Formatter class PullRequestFormatter < GitFormatter def existing_comments(client, sha) comments = client.pull_comments(sha) grouped_comments(comments) end def line_number(message, _) message.line.line.new_lineno end def submit_comments(client, comments) comments.each { |comment| client.create_pull_comment(comment) } rescue Octokit::UnprocessableEntity, HTTParty::Error => e $stderr.puts "Failed to post: #{e.message}" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pronto-0.8.0 | lib/pronto/formatter/pull_request_formatter.rb |
pronto-0.7.1 | lib/pronto/formatter/pull_request_formatter.rb |