Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15393264
D8881.id21067.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
927 B
Referenced Files
None
Subscribers
None
D8881.id21067.diff
View Options
diff --git a/src/applications/audit/query/PhabricatorCommitSearchEngine.php b/src/applications/audit/query/PhabricatorCommitSearchEngine.php
--- a/src/applications/audit/query/PhabricatorCommitSearchEngine.php
+++ b/src/applications/audit/query/PhabricatorCommitSearchEngine.php
@@ -113,6 +113,10 @@
$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 @@
'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(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 16, 8:45 PM (6 d, 9 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7686474
Default Alt Text
D8881.id21067.diff (927 B)
Attached To
Mode
D8881: Add an "authored commits" prebuilt filter to Audit
Attached
Detach File
Event Timeline
Log In to Comment