Merge pull request #13179 from appwrite/feat/bitbucket-repository-creation

Address a created Bitbucket repository by its slug
This commit is contained in:
Harsh Mahajan authored and GitHub committed 2026-08-11 19:01:59 +05:30
commit ac63900560
1 file changed
+4 -2
+4 -2
View File
@@ -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'])) {