Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2891716
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
3 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/src/applications/differential/herald/DifferentialBlockHeraldAction.php b/src/applications/differential/herald/DifferentialBlockHeraldAction.php
index b43e415b13..33ad4a3480 100644
--- a/src/applications/differential/herald/DifferentialBlockHeraldAction.php
+++ b/src/applications/differential/herald/DifferentialBlockHeraldAction.php
@@ -1,56 +1,56 @@
<?php
final class DifferentialBlockHeraldAction
extends HeraldAction {
const ACTIONCONST = 'differential.block';
const DO_BLOCK = 'do.block';
public function getHeraldActionName() {
return pht('Block diff with message');
}
public function getActionGroupKey() {
return HeraldApplicationActionGroup::ACTIONGROUPKEY;
}
public function supportsObject($object) {
return ($object instanceof DifferentialDiff);
}
public function supportsRuleType($rule_type) {
return ($rule_type != HeraldRuleTypeConfig::RULE_TYPE_PERSONAL);
}
public function applyEffect($object, HeraldEffect $effect) {
// This rule intentionally has no direct effect: the caller handles it
// after executing Herald.
$this->logEffect(self::DO_BLOCK);
}
public function getHeraldActionStandardType() {
return self::STANDARD_TEXT;
}
public function renderActionDescription($value) {
return pht('Block diff with message: %s', $value);
}
protected function getActionEffectMap() {
return array(
self::DO_BLOCK => array(
'icon' => 'fa-stop',
'color' => 'red',
'name' => pht('Blocked Diff'),
),
);
}
protected function renderActionEffectDescription($type, $data) {
switch ($type) {
- case self::DO_ADD_AUDITORS:
+ case self::DO_BLOCK:
return pht('Blocked diff.');
}
}
}
diff --git a/src/applications/diffusion/herald/DiffusionBlockHeraldAction.php b/src/applications/diffusion/herald/DiffusionBlockHeraldAction.php
index 4b56500b65..32656d78fe 100644
--- a/src/applications/diffusion/herald/DiffusionBlockHeraldAction.php
+++ b/src/applications/diffusion/herald/DiffusionBlockHeraldAction.php
@@ -1,56 +1,56 @@
<?php
final class DiffusionBlockHeraldAction
extends HeraldAction {
const ACTIONCONST = 'diffusion.block';
const DO_BLOCK = 'do.block';
public function getHeraldActionName() {
return pht('Block push with message');
}
public function getActionGroupKey() {
return HeraldApplicationActionGroup::ACTIONGROUPKEY;
}
public function supportsObject($object) {
return ($object instanceof PhabricatorRepositoryPushLog);
}
public function supportsRuleType($rule_type) {
return ($rule_type != HeraldRuleTypeConfig::RULE_TYPE_PERSONAL);
}
public function applyEffect($object, HeraldEffect $effect) {
// This rule intentionally has no direct effect: the caller handles it
// after executing Herald.
$this->logEffect(self::DO_BLOCK);
}
public function getHeraldActionStandardType() {
return self::STANDARD_TEXT;
}
public function renderActionDescription($value) {
return pht('Block push with message: %s', $value);
}
protected function getActionEffectMap() {
return array(
self::DO_BLOCK => array(
'icon' => 'fa-stop',
'color' => 'red',
'name' => pht('Blocked Push'),
),
);
}
protected function renderActionEffectDescription($type, $data) {
switch ($type) {
- case self::DO_ADD_AUDITORS:
+ case self::DO_BLOCK:
return pht('Blocked push.');
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Jan 19, 15:38 (3 w, 8 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1126078
Default Alt Text
(3 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment