Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/herald/HeraldCommitAdapter.php
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | switch ($rule_type) { | ||||
case HeraldRuleTypeConfig::RULE_TYPE_OBJECT: | case HeraldRuleTypeConfig::RULE_TYPE_OBJECT: | ||||
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_AUDIT, | self::ACTION_AUDIT, | ||||
self::ACTION_APPLY_BUILD_PLANS, | self::ACTION_APPLY_BUILD_PLANS, | ||||
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_AUDIT, | self::ACTION_AUDIT, | ||||
self::ACTION_NOTHING, | |||||
), | ), | ||||
parent::getActions($rule_type)); | parent::getActions($rule_type)); | ||||
} | } | ||||
} | } | ||||
public static function newLegacyAdapter( | public static function newLegacyAdapter( | ||||
PhabricatorRepository $repository, | PhabricatorRepository $repository, | ||||
PhabricatorRepositoryCommit $commit, | PhabricatorRepositoryCommit $commit, | ||||
▲ Show 20 Lines • Show All 256 Lines • Show Last 20 Lines |