1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-24 06:20:56 +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': case 'PhabricatorFeedStoryDifferential':
$phids[] = $action['data']['revision_phid']; $phids[] = $action['data']['revision_phid'];
break; break;
case 'PhabricatorFeedStoryAudit':
$phids[] = $action['data']['commitPHID'];
break;
case 'PhabricatorFeedStoryManiphest': case 'PhabricatorFeedStoryManiphest':
$phids[] = $action['data']['taskPHID']; $phids[] = $action['data']['taskPHID'];
@ -100,6 +103,10 @@ final class PhabricatorIRCWhatsNewHandler extends PhabricatorIRCHandler {
$rinf = $infs[$action['data']['revision_phid']]; $rinf = $infs[$action['data']['revision_phid']];
break; break;
case 'PhabricatorFeedStoryAudit':
$rinf = $infs[$action['data']['commitPHID']];
break;
case 'PhabricatorFeedStoryManiphest': case 'PhabricatorFeedStoryManiphest':
$rinf = $infs[$action['data']['taskPHID']]; $rinf = $infs[$action['data']['taskPHID']];
break; break;
@ -128,6 +135,7 @@ final class PhabricatorIRCWhatsNewHandler extends PhabricatorIRCHandler {
public function getRhetoric($input) { public function getRhetoric($input) {
switch ($input) { switch ($input) {
case 'comment':
case 'none': case 'none':
return 'commented on'; return 'commented on';
break; break;
@ -140,6 +148,9 @@ final class PhabricatorIRCWhatsNewHandler extends PhabricatorIRCHandler {
case 'create': case 'create':
return 'created'; return 'created';
break; break;
case 'concern':
return 'raised concern for';
break;
case 'abandon': case 'abandon':
return 'abandonned'; return 'abandonned';
break; break;