diff --git a/src/applications/audit/query/PhabricatorCommitSearchEngine.php b/src/applications/audit/query/PhabricatorCommitSearchEngine.php index a24a11a7f1..837e665824 100644 --- a/src/applications/audit/query/PhabricatorCommitSearchEngine.php +++ b/src/applications/audit/query/PhabricatorCommitSearchEngine.php @@ -113,6 +113,10 @@ final class PhabricatorCommitSearchEngine $names['open'] = pht('Open Audits'); + if ($this->requireViewer()->isLoggedIn()) { + $names['authored'] = pht('Authored Commits'); + } + $names['all'] = pht('All Commits'); return $names; @@ -140,6 +144,9 @@ final class PhabricatorCommitSearchEngine 'auditorPHIDs', PhabricatorAuditCommentEditor::loadAuditPHIDsForUser($viewer)); return $query; + case 'authored': + $query->setParameter('commitAuthorPHIDs', array($viewer->getPHID())); + return $query; case 'problem': $query->setParameter('commitAuthorPHIDs', array($viewer->getPHID())); $query->setParameter(