mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Merge pull request #13179 from appwrite/feat/bitbucket-repository-creation
Address a created Bitbucket repository by its slug
This commit is contained in:
1 file changed
+4
-2
@@ -219,8 +219,10 @@ class Bitbucket extends OAuth2
|
||||
$repository = \json_decode($repository, true) ?? [];
|
||||
|
||||
// Normalize to the GitHub/Gitea/GitLab field shape ProviderRepository expects.
|
||||
if (isset($repository['uuid'])) {
|
||||
$repository['id'] = $repository['uuid'];
|
||||
// The id is the "workspace/slug" every later lookup routes on, which is
|
||||
// what listing reports too -- a uuid resolves to no repository.
|
||||
if (isset($repository['full_name'])) {
|
||||
$repository['id'] = $repository['full_name'];
|
||||
}
|
||||
|
||||
if (isset($repository['is_private'])) {
|
||||
|
||||
Reference in new issue
Block a user