diff --git a/src/applications/project/query/PhabricatorProjectSearchEngine.php b/src/applications/project/query/PhabricatorProjectSearchEngine.php --- a/src/applications/project/query/PhabricatorProjectSearchEngine.php +++ b/src/applications/project/query/PhabricatorProjectSearchEngine.php @@ -23,6 +23,14 @@ id(new PhabricatorSearchTextField()) ->setLabel(pht('Name')) ->setKey('name'), + id(new PhabricatorSearchStringListField()) + ->setLabel(pht('Slugs')) + ->setIsHidden(true) + ->setKey('slugs') + ->setDescription( + pht( + 'Search for projects with particular slugs. (Slugs are the same '. + 'as project hashtags.)')), id(new PhabricatorUsersSearchField()) ->setLabel(pht('Members')) ->setKey('memberPHIDs') @@ -81,6 +89,10 @@ $query->withNameTokens($tokens); } + if ($map['slugs']) { + $query->withSlugs($map['slugs']); + } + if ($map['memberPHIDs']) { $query->withMemberPHIDs($map['memberPHIDs']); }