class Github::PullRequests::Comments

def list(user_name, repo_name, params={})


github.pull_requests.comments.list 'user-name', 'repo-name' { |comm| ... }
github.pull_requests.comments.list 'user-name', 'repo-name'
github = Github.new
= Examples
format: YYYY-MM-DDTHH:MM:SSZ
* :since - Optional string of a timestamp in ISO 8601
Ignored with sort parameter.
* :direction - Optional string, asc or desc.
* :sort - Optional string, created or updated

= Parameters

By default, Review Comments are ordered by ascending ID.

List comments in a repository

github.pull_requests.comments.list 'user-name', 'repo-name', request_id: 'id'
github = Github.new
= Examples

List comments on a pull request
def list(user_name, repo_name, params={})
  set :user => user_name, :repo => repo_name
  assert_presence_of user, repo
  normalize! params
  response = if (request_id = params.delete('request_id'))
    get_request("/repos/#{user}/#{repo}/pulls/#{request_id}/comments", params)
  else
    get_request("/repos/#{user}/#{repo}/pulls/comments", params)
  end
  return response unless block_given?
  response.each { |el| yield el }
end