class Github::Repos::Forks

def create(user_name, repo_name, params={})


"org" => "github"
github.repos.forks.create 'user-name', 'repo-name',
github = Github.new
= Examples

* :org - Optional string - the name of the service that is being called.
= Inputs

Create a fork for the authenticated user
def create(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[ org ], params
  post_request("/repos/#{user}/#{repo}/forks", params)
end

def list(user_name, repo_name, params = {})


github.repos.forks.list 'user-name', 'repo-name' { |hook| ... }
github.repos.forks.list 'user-name', 'repo-name'
github = Github.new
= Examples

* :sort - newest, oldest, watchers, default: newest
= Parameters

List repository forks
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
  response = get_request("/repos/#{user}/#{repo}/forks", params)
  return response unless block_given?
  response.each { |el| yield el }
end