class Github::Repos
def list(*args)
github.repos.list org: 'org-name', { |repo| ... }
github.repos.list org: 'org-name'
github = Github.new
= Examples
List repositories for the specified organisation.
github.repos.list user: 'user-name', { |repo| ... }
github.repos.list user: 'user-name'
github = Github.new
= Examples
List public repositories for the specified user.
github.repos.list :every { |repo| ... }
github.repos.list :every
github = Github.new
= Examples
* :since - the integer ID of the last Repository that you've seen.
= Parameters
This provides a dump of every repository, in the order that they were created.
List all repositories
github.repos.list { |repo| ... }
github.repos.list
github = Github.new :oauth_token => '...'
= Examples
List repositories for the authenticated user
def list(*args) arguments(args) do sift %w[ user org type sort direction since ] end params = arguments.params response = if (user_name = (params.delete("user"))) get_request("/users/#{user_name}/repos", params) elsif (org_name = (params.delete("org"))) get_request("/orgs/#{org_name}/repos", params) elsif args.map(&:to_s).include?("every") get_request("/repositories", params) else # For authenticated user get_request("/user/repos", params) end return response unless block_given? response.each { |el| yield el } end