Differential D13646 Diff 33276 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 163 Lines • ▼ Show 20 Lines | switch ($rule_type) { | ||||
array( | array( | ||||
self::ACTION_ADD_CC, | self::ACTION_ADD_CC, | ||||
self::ACTION_REMOVE_CC, | self::ACTION_REMOVE_CC, | ||||
self::ACTION_EMAIL, | 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, | ||||
self::ACTION_NOTHING, | |||||
), | ), | ||||
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_ADD_CC, | self::ACTION_ADD_CC, | ||||
self::ACTION_REMOVE_CC, | self::ACTION_REMOVE_CC, | ||||
self::ACTION_EMAIL, | self::ACTION_EMAIL, | ||||
self::ACTION_FLAG, | self::ACTION_FLAG, | ||||
self::ACTION_ADD_REVIEWERS, | self::ACTION_ADD_REVIEWERS, | ||||
self::ACTION_ADD_BLOCKING_REVIEWERS, | self::ACTION_ADD_BLOCKING_REVIEWERS, | ||||
self::ACTION_NOTHING, | |||||
), | ), | ||||
parent::getActions($rule_type)); | parent::getActions($rule_type)); | ||||
} | } | ||||
} | } | ||||
public function applyHeraldEffects(array $effects) { | public function applyHeraldEffects(array $effects) { | ||||
assert_instances_of($effects, 'HeraldEffect'); | assert_instances_of($effects, 'HeraldEffect'); | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |