Differential D17191 Diff 41341 src/applications/differential/xaction/DifferentialRevisionAcceptTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/xaction/DifferentialRevisionAcceptTransaction.php
Show All 20 Lines | final class DifferentialRevisionAcceptTransaction | ||||
public function getColor() { | public function getColor() { | ||||
return 'green'; | return 'green'; | ||||
} | } | ||||
protected function getRevisionActionOrder() { | protected function getRevisionActionOrder() { | ||||
return 500; | return 500; | ||||
} | } | ||||
public function getActionName() { | |||||
return pht('Accepted'); | |||||
} | |||||
public function getCommandKeyword() { | public function getCommandKeyword() { | ||||
$accept_key = 'differential.enable-email-accept'; | $accept_key = 'differential.enable-email-accept'; | ||||
$allow_email_accept = PhabricatorEnv::getEnvConfig($accept_key); | $allow_email_accept = PhabricatorEnv::getEnvConfig($accept_key); | ||||
if (!$allow_email_accept) { | if (!$allow_email_accept) { | ||||
return null; | return null; | ||||
} | } | ||||
return 'accept'; | return 'accept'; | ||||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |