class Github::Issues::Comments
def list(user_name, repo_name, params={})
github.issues.comments.all 'user-name', 'repo-name' {|com| .. }
github.issues.comments.all '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
List comments in a repository
github.issues.comments.all 'user-name', 'repo-name', issue_id: 'id' {|com| .. }
github.issues.comments.all 'user-name', 'repo-name', issue_id: 'id'
github = Github.new
= Examples
List comments on an issue
def list(user_name, repo_name, params={}) set :user => user_name, :repo => repo_name assert_presence_of user, repo normalize! params response = if (issue_id = params.delete('issue_id')) get_request("/repos/#{user}/#{repo}/issues/#{issue_id}/comments", params) else get_request("/repos/#{user}/#{repo}/issues/comments", params) end return response unless block_given? response.each { |el| yield el } end