@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Display Arcanist project in Differential e-mails

Summary:
I need this information quite often.
I don't know how many people are working on a single project and this information will be useless for them but I guess it won't hurt much?

Test Plan: Commented on accepted revision.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D2674

vrana 5752faec afe9a1a9

+20 -1
+1
src/applications/differential/field/selector/DifferentialDefaultFieldSelector.php
··· 105 105 'DifferentialRevisionIDFieldSpecification', 106 106 'DifferentialManiphestTasksFieldSpecification', 107 107 'DifferentialBranchFieldSpecification', 108 + 'DifferentialArcanistProjectFieldSpecification', 108 109 'DifferentialCommitsFieldSpecification', 109 110 )) + $map; 110 111
+19 -1
src/applications/differential/field/specification/DifferentialArcanistProjectFieldSpecification.php
··· 1 1 <?php 2 2 3 3 /* 4 - * Copyright 2011 Facebook, Inc. 4 + * Copyright 2012 Facebook, Inc. 5 5 * 6 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 7 * you may not use this file except in compliance with the License. ··· 49 49 private function getArcanistProjectPHID() { 50 50 $diff = $this->getDiff(); 51 51 return $diff->getArcanistProjectPHID(); 52 + } 53 + 54 + public function renderValueForMail($phase) { 55 + $status = $this->getRevision()->getStatus(); 56 + 57 + if ($status != ArcanistDifferentialRevisionStatus::NEEDS_REVISION && 58 + $status != ArcanistDifferentialRevisionStatus::ACCEPTED) { 59 + return null; 60 + } 61 + 62 + $diff = $this->getRevision()->loadActiveDiff(); 63 + if ($diff) { 64 + $phid = $diff->getArcanistProjectPHID(); 65 + if ($phid) { 66 + $handle = PhabricatorObjectHandleData::loadOneHandle($phid); 67 + return "ARCANIST PROJECT\n ".$handle->getName(); 68 + } 69 + } 52 70 } 53 71 54 72 }