lib/github_api/repos/commits.rb
# List commits on a repository
#
# = Parameters
# * <tt>:sha</tt>     Optional string. Sha or branch to start listing commits from.
# * <tt>:path</tt>    Optional string. Only commits containing this file path will be returned.
# * <tt>:author</tt>  GitHub login, name, or email by which to filter by commit author.
#
# = Examples
#  github = Github.new
#  github.repos.commits.list 'user-name', 'repo-name', :sha => '...'
#  github.repos.commits.list 'user-name', 'repo-name', :sha => '...' { |commit| ... }
#
List commits on a repository
Parameters
:sha     Optional string. Sha or branch to start listing commits from.
:path    Optional string. Only commits containing this file path will be returned.
:author  GitHub login, name, or email by which to filter by commit author.


List commits on a repository Parameters : sha Optional string . Sha or branch to start listing commits from . : path Optional string . Only commits containing this file path will be returned . : author GitHub login name or email by which to filter by commit author .
def list(user_name, repo_name, params={})
        _update_user_repo_params(user_name, repo_name)
        _validate_user_repo_params(user, repo) unless 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
def list ( user_name , repo_name , params = { } ) _update_user_repo_params ( user_name , repo_name ) _validate_user_repo_params ( user , repo ) unless 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
List commits on a repository
 Parameters
 <tt>:sha</tt>     Optional string.
List commits on a repository Parameters <tt > : sha< / tt > Optional string .
user_name
<not_specific>
repo_name
<not_specific>
params
<not_specific>