mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 20:40:56 +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:
parent
0a5beaa296
commit
dfd53fb008
1 changed files with 7 additions and 1 deletions
|
@ -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(),
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue