Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13987978
D7564.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D7564.diff
View Options
Index: src/applications/herald/adapter/HeraldAdapter.php
===================================================================
--- src/applications/herald/adapter/HeraldAdapter.php
+++ src/applications/herald/adapter/HeraldAdapter.php
@@ -24,6 +24,7 @@
const FIELD_CONTENT_SOURCE = 'contentsource';
const FIELD_ALWAYS = 'always';
const FIELD_AUTHOR_PROJECTS = 'authorprojects';
+ const FIELD_PROJECTS = 'projects';
const CONDITION_CONTAINS = 'contains';
const CONDITION_NOT_CONTAINS = '!contains';
@@ -154,6 +155,7 @@
self::FIELD_CONTENT_SOURCE => pht('Content Source'),
self::FIELD_ALWAYS => pht('Always'),
self::FIELD_AUTHOR_PROJECTS => pht("Author's projects"),
+ self::FIELD_PROJECTS => pht("Projects"),
);
}
@@ -207,6 +209,7 @@
case self::FIELD_REVIEWERS:
case self::FIELD_CC:
case self::FIELD_AUTHOR_PROJECTS:
+ case self::FIELD_PROJECTS:
return array(
self::CONDITION_INCLUDE_ALL,
self::CONDITION_INCLUDE_ANY,
@@ -600,6 +603,7 @@
case self::FIELD_AFFECTED_PACKAGE:
return self::VALUE_OWNERS_PACKAGE;
case self::FIELD_AUTHOR_PROJECTS:
+ case self::FIELD_PROJECTS:
return self::VALUE_PROJECT;
case self::FIELD_REVIEWERS:
return self::VALUE_USER_OR_PROJECT;
Index: src/applications/herald/adapter/HeraldManiphestTaskAdapter.php
===================================================================
--- src/applications/herald/adapter/HeraldManiphestTaskAdapter.php
+++ src/applications/herald/adapter/HeraldManiphestTaskAdapter.php
@@ -62,6 +62,7 @@
self::FIELD_AUTHOR,
self::FIELD_CC,
self::FIELD_CONTENT_SOURCE,
+ self::FIELD_PROJECTS,
),
parent::getFields());
}
@@ -103,6 +104,8 @@
return $this->getTask()->getAuthorPHID();
case self::FIELD_CC:
return $this->getTask()->getCCPHIDs();
+ case self::FIELD_PROJECTS:
+ return $this->getTask()->getProjectPHIDs();
}
return parent::getHeraldField($field);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Oct 22, 12:26 PM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6717634
Default Alt Text
D7564.diff (2 KB)
Attached To
Mode
D7564: Herald - add ability to conditionalize on Maniphest Task projects
Attached
Detach File
Event Timeline
Log In to Comment