class Github::Repos::Comments
def list(user_name, repo_name, params={})
: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(user_name, repo_name, params={}) set :user => user_name, :repo => repo_name assert_presence_of user, repo normalize! 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