1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-24 06:20:56 +01:00

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
This commit is contained in:
Koolvin 2012-02-29 12:11:37 -08:00
parent 8b447e21d0
commit 84b518efeb

View file

@ -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;