class Pronto::Github
def pull_comments(sha)
def pull_comments(sha) @comment_cache["#{pull_id}/#{sha}"] ||= begin client.pull_comments(slug, pull_id).map do |comment| Comment.new( sha, comment.body, comment.path, comment.line || comment.original_line ) end end rescue Octokit::NotFound => e @config.logger.log("Error raised and rescued: #{e}") msg = "Pull request for sha #{sha} with id #{pull_id} was not found." raise Pronto::Error, msg end