1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 12:00:55 +01:00

Merge pull request #96 from Koolvin/master

Added irc What's New support for audit functions
This commit is contained in:
Evan Priestley 2012-02-29 12:49:22 -08:00
commit fe7e991b55

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;