3 final class DifferentialReviewersAddReviewersHeraldAction
4 extends DifferentialReviewersHeraldAction
{
6 const ACTIONCONST
= 'differential.reviewers.add';
8 public function getHeraldActionName() {
9 return pht('Add reviewers');
12 public function supportsRuleType($rule_type) {
13 return ($rule_type != HeraldRuleTypeConfig
::RULE_TYPE_PERSONAL
);
16 public function applyEffect($object, HeraldEffect
$effect) {
17 return $this->applyReviewers($effect->getTarget(), $is_blocking = false);
20 public function getHeraldActionStandardType() {
21 return self
::STANDARD_PHID_LIST
;
24 protected function getDatasource() {
25 return new DiffusionAuditorDatasource();
28 public function renderActionDescription($value) {
29 return pht('Add reviewers: %s.', $this->renderHandleList($value));
32 public function getPHIDsAffectedByAction(HeraldActionRecord
$record) {
33 return $record->getTarget();