Method: Github::Client::Repos::Forks#create

Defined in:
lib/github_api2/client/repos/forks.rb

#create(*args) ⇒ Object

Create a fork for the authenticated user

Examples:

github = Github.new
github.repos.forks.create 'user-name', 'repo-name',
  organization: "github"

Parameters:



44
45
46
47
48
# File 'lib/github_api2/client/repos/forks.rb', line 44

def create(*args)
  arguments(args, required: [:user, :repo])

  post_request("/repos/#{arguments.user}/#{arguments.repo}/forks", arguments.params)
end