public function createRepository(string $name, string $description = '', string $homepage = '',
                                     bool $private = false, bool $hasIssues = true, bool $hasWiki = true,
                                     bool $hasDownloads = true, int $teamId = 0, bool $autoInit = false,
                                     string $gitignoreTemplate = '', string $licenseTemplate = ''): array
    {
        return $this->getApi()->request(sprintf('/user/repos'), Request::METHOD_POST, [
                'name'               => $name,
                'description'        => $description,
                'homepage'           => $homepage,
                'private'            => $private,
                'has_issues'         => $hasIssues,
                'has_wiki'           => $hasWiki,
                'has_downloads'      => $hasDownloads,
                'team_id'            => $teamId,
                'auto_init'          => $autoInit,
                'gitignore_template' => $gitignoreTemplate,
                'license_template'   => $licenseTemplate
            ]);
    }