Differential D13701 Diff 33279 src/applications/differential/herald/HeraldDifferentialRevisionAdapter.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/herald/HeraldDifferentialRevisionAdapter.php
Show First 20 Lines • Show All 156 Lines • ▼ Show 20 Lines | public function loadReviewers() { | ||||
} | } | ||||
} | } | ||||
public function getActions($rule_type) { | public function getActions($rule_type) { | ||||
switch ($rule_type) { | switch ($rule_type) { | ||||
case HeraldRuleTypeConfig::RULE_TYPE_GLOBAL: | case HeraldRuleTypeConfig::RULE_TYPE_GLOBAL: | ||||
return array_merge( | return array_merge( | ||||
array( | array( | ||||
self::ACTION_EMAIL, | |||||
self::ACTION_ADD_REVIEWERS, | self::ACTION_ADD_REVIEWERS, | ||||
self::ACTION_ADD_BLOCKING_REVIEWERS, | self::ACTION_ADD_BLOCKING_REVIEWERS, | ||||
self::ACTION_APPLY_BUILD_PLANS, | self::ACTION_APPLY_BUILD_PLANS, | ||||
self::ACTION_REQUIRE_SIGNATURE, | self::ACTION_REQUIRE_SIGNATURE, | ||||
), | ), | ||||
parent::getActions($rule_type)); | parent::getActions($rule_type)); | ||||
case HeraldRuleTypeConfig::RULE_TYPE_PERSONAL: | case HeraldRuleTypeConfig::RULE_TYPE_PERSONAL: | ||||
return array_merge( | return array_merge( | ||||
array( | array( | ||||
self::ACTION_EMAIL, | |||||
self::ACTION_ADD_REVIEWERS, | self::ACTION_ADD_REVIEWERS, | ||||
self::ACTION_ADD_BLOCKING_REVIEWERS, | self::ACTION_ADD_BLOCKING_REVIEWERS, | ||||
), | ), | ||||
parent::getActions($rule_type)); | parent::getActions($rule_type)); | ||||
} | } | ||||
} | } | ||||
public function applyHeraldEffects(array $effects) { | public function applyHeraldEffects(array $effects) { | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |