我正在使用 BitBucket 的 PHP Lib 来创建一个存储库:
$repo = new \Bitbucket\API\Repositories\Repository();
$repo->setCredentials( new \Bitbucket\API\Authentication\Basic( $this->username, $this->password ) );
$slug = self::generateSlug( $domainName );
return $repo->create( $this->username, $slug, array(
'name' => $domainName,
'scm' => 'git',
'description' => "Project: {$domainName}",
'language' => 'php',
'is_private' => true,
'forking_policy' => 'no_public_forks',
));
但我得到的只是'NoneType' object has no attribute 'pk'
有没有人遇到过这个?
问候