3 final class DifferentialReviewersAddSelfHeraldAction
4 extends DifferentialReviewersHeraldAction
{
6 const ACTIONCONST
= 'differential.reviewers.self.add';
8 public function getHeraldActionName() {
9 return pht('Add me as a reviewer');
12 public function supportsRuleType($rule_type) {
13 return ($rule_type == HeraldRuleTypeConfig
::RULE_TYPE_PERSONAL
);
16 public function applyEffect($object, HeraldEffect
$effect) {
17 $phid = $effect->getRule()->getAuthorPHID();
18 return $this->applyReviewers(array($phid), $is_blocking = false);
21 public function getHeraldActionStandardType() {
22 return self
::STANDARD_NONE
;
25 public function renderActionDescription($value) {
26 return pht('Add rule author as reviewer.');