class Github::Repos::Comments
def list(*args)
:sha => '6dcb09b5b57875f334f61aebed695e2e4193db5e'
github.repos.comments.list 'user-name', 'repo-name',
= Examples
List comments for a single commit
github.repos.comments.list 'user-name', 'repo-name' { |com| ... }
github.repos.comments.list 'user-name', 'repo-name'
github = Github.new
= Examples
List commit comments for a repository
def list(*args) arguments(args, :required => [:user, :repo]) params = arguments.params response = if (sha = params.delete('sha')) get_request("/repos/#{user}/#{repo}/commits/#{sha}/comments", params) else get_request("/repos/#{user}/#{repo}/comments", params) end return response unless block_given? response.each { |el| yield el } end