Page MenuHomePhabricator

D10289.id30802.diff
No OneTemporary

D10289.id30802.diff

diff --git a/src/applications/repository/conduit/RepositoryQueryConduitAPIMethod.php b/src/applications/repository/conduit/RepositoryQueryConduitAPIMethod.php
--- a/src/applications/repository/conduit/RepositoryQueryConduitAPIMethod.php
+++ b/src/applications/repository/conduit/RepositoryQueryConduitAPIMethod.php
@@ -31,6 +31,7 @@
'vcsTypes' => 'optional list<string>',
'remoteURIs' => 'optional list<string>',
'uuids' => 'optional list<string>',
+ 'projectPHIDs' => 'optional list<phid>',
);
}
@@ -71,6 +72,12 @@
$query->withUUIDs($uuids);
}
+ $projects = $request->getValue('projectPHIDs', array());
+ if ($projects) {
+ $query->withAnyProjects($projects);
+ }
+ $query->needProjectPHIDs(true);
+
$pager = $this->newPager($request);
$repositories = $query->executeWithCursorPager($pager);
diff --git a/src/applications/repository/storage/PhabricatorRepository.php b/src/applications/repository/storage/PhabricatorRepository.php
--- a/src/applications/repository/storage/PhabricatorRepository.php
+++ b/src/applications/repository/storage/PhabricatorRepository.php
@@ -135,6 +135,7 @@
'isActive' => $this->isTracked(),
'isHosted' => $this->isHosted(),
'isImporting' => $this->isImporting(),
+ 'projects' => $this->getProjectPHIDs(),
);
}

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 3, 8:08 AM (2 d, 5 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6731074
Default Alt Text
D10289.id30802.diff (1 KB)

Event Timeline