lib/GitHub/Receiver/Repositories/Forks.php
public function createFork(string $organization = ''): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/forks',
            $this->getRepositories()->getOwner(), $this->getRepositories()->getRepo()), Request::METHOD_POST,
            ['organization' => $organization]);
    }
public function createFork(string $organization = ''): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/forks',
            $this->getRepositories()->getOwner(), $this->getRepositories()->getRepo()), Request::METHOD_POST,
            ['organization' => $organization]);
    }
public function createFork ( string $ organization = '' ) : array { return $ this -> getApi ( ) -> request ( $ this -> getApi ( ) -> sprintf ( '/repos/:owner/:repo/forks' , $ this -> getRepositories ( ) -> getOwner ( ) , $ this -> getRepositories ( ) -> getRepo ( ) ) , Request :: METHOD_POST , [ 'organization' => $ organization ] ) ; }
Create a fork

@link https://developer.github.com/v3/repos/forks/#create-a-fork

@param string $organization

@return array
Create a fork