Differential D19646 Diff 46957 src/applications/repository/phid/PhabricatorRepositoryCommitPHIDType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/phid/PhabricatorRepositoryCommitPHIDType.php
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | foreach ($handles as $phid => $handle) { | ||||
$full_name = $name; | $full_name = $name; | ||||
} | } | ||||
$handle->setName($name); | $handle->setName($name); | ||||
$handle->setFullName($full_name); | $handle->setFullName($full_name); | ||||
$handle->setURI($commit->getURI()); | $handle->setURI($commit->getURI()); | ||||
$handle->setTimestamp($commit->getEpoch()); | $handle->setTimestamp($commit->getEpoch()); | ||||
$status = $commit->getAuditStatus(); | $status = $commit->getAuditStatusObject(); | ||||
$icon = PhabricatorAuditCommitStatusConstants::getStatusIcon($status); | $icon = $status->getIcon(); | ||||
$color = PhabricatorAuditCommitStatusConstants::getStatusColor($status); | $color = $status->getColor(); | ||||
$name = PhabricatorAuditCommitStatusConstants::getStatusName($status); | $name = $status->getName(); | ||||
$handle | $handle | ||||
->setStateIcon($icon) | ->setStateIcon($icon) | ||||
->setStateColor($color) | ->setStateColor($color) | ||||
->setStateName($name); | ->setStateName($name); | ||||
} | } | ||||
} | } | ||||
Show All 31 Lines |