Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/herald/HeraldCommitAdapter.php
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | final class HeraldCommitAdapter extends HeraldAdapter { | ||||
} | } | ||||
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: | ||||
case HeraldRuleTypeConfig::RULE_TYPE_OBJECT: | case HeraldRuleTypeConfig::RULE_TYPE_OBJECT: | ||||
return array_merge( | return array_merge( | ||||
array( | array( | ||||
self::ACTION_EMAIL, | |||||
self::ACTION_AUDIT, | self::ACTION_AUDIT, | ||||
self::ACTION_APPLY_BUILD_PLANS, | self::ACTION_APPLY_BUILD_PLANS, | ||||
), | ), | ||||
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_AUDIT, | self::ACTION_AUDIT, | ||||
), | ), | ||||
parent::getActions($rule_type)); | parent::getActions($rule_type)); | ||||
} | } | ||||
} | } | ||||
public static function newLegacyAdapter( | public static function newLegacyAdapter( | ||||
PhabricatorRepository $repository, | PhabricatorRepository $repository, | ||||
▲ Show 20 Lines • Show All 257 Lines • Show Last 20 Lines |