diff --git a/src/applications/repository/query/PhabricatorRepositorySearchEngine.php b/src/applications/repository/query/PhabricatorRepositorySearchEngine.php index 5cd88183e1..9b5b721edb 100644 --- a/src/applications/repository/query/PhabricatorRepositorySearchEngine.php +++ b/src/applications/repository/query/PhabricatorRepositorySearchEngine.php @@ -24,6 +24,9 @@ final class PhabricatorRepositorySearchEngine id(new PhabricatorSearchStringListField()) ->setLabel(pht('Callsigns')) ->setKey('callsigns'), + id(new PhabricatorSearchStringListField()) + ->setLabel(pht('Short Names')) + ->setKey('shortNames'), id(new PhabricatorSearchSelectField()) ->setLabel(pht('Status')) ->setKey('status') @@ -51,6 +54,10 @@ final class PhabricatorRepositorySearchEngine $query->withCallsigns($map['callsigns']); } + if ($map['shortNames']) { + $query->withSlugs($map['shortNames']); + } + if ($map['status']) { $status = idx($this->getStatusValues(), $map['status']); if ($status) {