class Github::Repos::Commits
def list(user_name, repo_name, params={})
github.repos.commits.list 'user-name', 'repo-name', :sha => '...' { |commit| ... }
github.repos.commits.list 'user-name', 'repo-name', :sha => '...'
github = Github.new
= Examples
* :author GitHub login, name, or email by which to filter by commit author.
* :path Optional string. Only commits containing this file path will be returned.
* :sha Optional string. Sha or branch to start listing commits from.
= Parameters
List commits on a repository
def list(user_name, repo_name, params={}) set :user => user_name, :repo => repo_name assert_presence_of user, repo normalize! params filter! %w[sha path author], params response = get_request("/repos/#{user}/#{repo}/commits", params) return response unless block_given? response.each { |el| yield el } end