Gush\ThirdParty\Github\GitHubAdapter::createRepo PHP Метод

createRepo() публичный Метод

public createRepo ( $name, $description, $homepage, $public = true, $organization = null, $hasIssues = true, $hasWiki = false, $hasDownloads = false, $teamId, $autoInit = true )
    public function createRepo($name, $description, $homepage, $public = true, $organization = null, $hasIssues = true, $hasWiki = false, $hasDownloads = false, $teamId = 0, $autoInit = true)
    {
        $repo = $this->client->api('repo');
        $result = $repo->create($name, $description, $homepage, $public, $organization, $hasIssues, $hasWiki, $hasDownloads, $teamId, $autoInit);
        return ['git_url' => $result['ssh_url'], 'html_url' => $result['html_url']];
    }