1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-20 13:52:40 +01:00

Return "uri" field in diffusion.querycommits

Summary: See IRC transcript.

Test Plan: {F110975}

Reviewers: btrahan, spicyj

Reviewed By: spicyj

CC: aran

Differential Revision: https://secure.phabricator.com/D8172
This commit is contained in:
epriestley 2014-02-08 16:32:20 -08:00
parent 0a5beaa296
commit dfd53fb008

View file

@ -62,12 +62,18 @@ final class ConduitAPI_diffusion_querycommits_Method
$data = array();
foreach ($commits as $commit) {
$callsign = $commit->getRepository()->getCallsign();
$identifier = $commit->getCommitIdentifier();
$uri = '/r'.$callsign.$identifier;
$uri = PhabricatorEnv::getProductionURI($uri);
$data[$commit->getPHID()] = array(
'id' => $commit->getID(),
'phid' => $commit->getPHID(),
'repositoryPHID' => $commit->getRepository()->getPHID(),
'identifier' => $commit->getCommitIdentifier(),
'identifier' => $identifier,
'epoch' => $commit->getEpoch(),
'uri' => $uri,
'isImporting' => !$commit->isImported(),
);
}