Sha256: 8d954c9bcdb261b7c901be5d6cca610d712a4347851fc73a6f58619ddeabecc0
Contents?: true
Size: 510 Bytes
Versions: 11
Compression:
Stored size: 510 Bytes
Contents
module Pronto module Formatter class PullRequestFormatter < GitFormatter def existing_comments(_, client, repo) sha = repo.head_commit_sha comments = client.pull_comments(sha) grouped_comments(comments) 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
11 entries across 11 versions & 1 rubygems