1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-11 07:11:04 +01:00

Print Maniphest tasks in Differential e-mail

Test Plan: Send diff with attached task, read e-mail.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Koolvin

Maniphest Tasks: T1128

Differential Revision: https://secure.phabricator.com/D2256
This commit is contained in:
vrana 2012-04-17 11:40:26 -07:00
parent 6c0e22b3a3
commit 6929ac539e
2 changed files with 16 additions and 0 deletions

View file

@ -354,6 +354,11 @@ EOTEXT;
return $this->changesets;
}
protected function getManiphestTaskPHIDs() {
return $this->getRevision()->getAttachedPHIDs(
PhabricatorPHIDConstants::PHID_TYPE_TASK);
}
public function setInlineComments(array $inline_comments) {
assert_instances_of($inline_comments, 'PhabricatorInlineCommentInterface');
$this->inlineComments = $inline_comments;

View file

@ -71,6 +71,17 @@ abstract class DifferentialReviewRequestMail extends DifferentialMail {
$body[] = $this->renderRevisionDetailLink();
$body[] = null;
$task_phids = $this->getManiphestTaskPHIDs();
if ($task_phids) {
$handles = id(new PhabricatorObjectHandleData($task_phids))
->loadHandles();
$body[] = 'MANIPHEST TASKS';
foreach ($handles as $handle) {
$body[] = ' '.PhabricatorEnv::getProductionURI($handle->getURI());
}
$body[] = null;
}
$changesets = $this->getChangesets();
if ($changesets) {
$body[] = 'AFFECTED FILES';