Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14013630
D10289.id30802.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D10289.id30802.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D10289: support phids in repository.query
Attached
Detach File
Event Timeline
Log In to Comment