Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2888999
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
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/src/applications/diffusion/herald/DiffusionCommitAutocloseHeraldField.php b/src/applications/diffusion/herald/DiffusionCommitAutocloseHeraldField.php
index c620b18778..787446ee6a 100644
--- a/src/applications/diffusion/herald/DiffusionCommitAutocloseHeraldField.php
+++ b/src/applications/diffusion/herald/DiffusionCommitAutocloseHeraldField.php
@@ -1,26 +1,32 @@
<?php
final class DiffusionCommitAutocloseHeraldField
extends DiffusionCommitHeraldField {
const FIELDCONST = 'diffusion.commit.autoclose';
+ public function getFieldGroupKey() {
+ return HeraldDeprecatedFieldGroup::FIELDGROUPKEY;
+ }
+
public function getHeraldFieldName() {
- return pht('Commit is on permanent branch');
+ // Herald no longer triggers until a commit is reachable from a permanent
+ // ref, so this condition is always true by definition.
+ return pht('Commit Autocloses (Deprecated)');
}
public function getHeraldFieldValue($object) {
- return $object->getRepository()->shouldAutocloseCommit($object);
+ return true;
}
public function getHeraldFieldConditions() {
return array(
HeraldAdapter::CONDITION_UNCONDITIONALLY,
);
}
public function getHeraldFieldValueType($condition) {
return new HeraldEmptyFieldValue();
}
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Jan 19 2025, 10:59 (5 w, 17 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1124147
Default Alt Text
(1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment