From 84b518efebdd274b7520ae40a8b7f9675fde1b2e Mon Sep 17 00:00:00 2001 From: Koolvin Date: Wed, 29 Feb 2012 12:11:37 -0800 Subject: [PATCH] Added irc What's New support for audit functions Summary: Added support for audit comment, concern, accept Test Plan: Comment / Concern / Accept audit, and say "What's new?" in IRC Reviewers: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1730 --- .../whatsnew/PhabricatorIRCWhatsNewHandler.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/infrastructure/daemon/irc/handler/whatsnew/PhabricatorIRCWhatsNewHandler.php b/src/infrastructure/daemon/irc/handler/whatsnew/PhabricatorIRCWhatsNewHandler.php index c32c3684ec..aa6d2bb41f 100644 --- a/src/infrastructure/daemon/irc/handler/whatsnew/PhabricatorIRCWhatsNewHandler.php +++ b/src/infrastructure/daemon/irc/handler/whatsnew/PhabricatorIRCWhatsNewHandler.php @@ -69,6 +69,9 @@ final class PhabricatorIRCWhatsNewHandler extends PhabricatorIRCHandler { case 'PhabricatorFeedStoryDifferential': $phids[] = $action['data']['revision_phid']; break; + case 'PhabricatorFeedStoryAudit': + $phids[] = $action['data']['commitPHID']; + break; case 'PhabricatorFeedStoryManiphest': $phids[] = $action['data']['taskPHID']; @@ -100,6 +103,10 @@ final class PhabricatorIRCWhatsNewHandler extends PhabricatorIRCHandler { $rinf = $infs[$action['data']['revision_phid']]; break; + case 'PhabricatorFeedStoryAudit': + $rinf = $infs[$action['data']['commitPHID']]; + break; + case 'PhabricatorFeedStoryManiphest': $rinf = $infs[$action['data']['taskPHID']]; break; @@ -128,6 +135,7 @@ final class PhabricatorIRCWhatsNewHandler extends PhabricatorIRCHandler { public function getRhetoric($input) { switch ($input) { + case 'comment': case 'none': return 'commented on'; break; @@ -140,6 +148,9 @@ final class PhabricatorIRCWhatsNewHandler extends PhabricatorIRCHandler { case 'create': return 'created'; break; + case 'concern': + return 'raised concern for'; + break; case 'abandon': return 'abandonned'; break;