Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15377443
D20427.id48729.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
983 B
Referenced Files
None
Subscribers
None
D20427.id48729.diff
View Options
diff --git a/src/applications/diffusion/herald/DiffusionCommitAutocloseHeraldField.php b/src/applications/diffusion/herald/DiffusionCommitAutocloseHeraldField.php
--- a/src/applications/diffusion/herald/DiffusionCommitAutocloseHeraldField.php
+++ b/src/applications/diffusion/herald/DiffusionCommitAutocloseHeraldField.php
@@ -5,12 +5,18 @@
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() {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 14, 8:53 AM (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7223775
Default Alt Text
D20427.id48729.diff (983 B)
Attached To
Mode
D20427: Deprecate the "Commit is on autoclose/permanent branch" Herald "Commit" field
Attached
Detach File
Event Timeline
Log In to Comment