Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/editor/DiffusionCommitEditEngine.php
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Lines | $fields[] = id(new PhabricatorDatasourceEditField()) | ||||
DiffusionCommitAuditorsTransaction::TRANSACTIONTYPE) | DiffusionCommitAuditorsTransaction::TRANSACTIONTYPE) | ||||
->setCommentActionLabel(pht('Change Auditors')) | ->setCommentActionLabel(pht('Change Auditors')) | ||||
->setDescription(pht('Auditors for this commit.')) | ->setDescription(pht('Auditors for this commit.')) | ||||
->setConduitDescription(pht('Change the auditors for this commit.')) | ->setConduitDescription(pht('Change the auditors for this commit.')) | ||||
->setConduitTypeDescription(pht('New auditors.')) | ->setConduitTypeDescription(pht('New auditors.')) | ||||
->setValue($object->getAuditorPHIDsForEdit()); | ->setValue($object->getAuditorPHIDsForEdit()); | ||||
$reason = $data->getCommitDetail('autocloseReason', false); | $reason = $data->getCommitDetail('autocloseReason', false); | ||||
$reason = PhabricatorRepository::BECAUSE_AUTOCLOSE_FORCED; | |||||
vrana: LOL. | |||||
Not Done Inline ActionsUgh, thanks. epriestley: Ugh, thanks. | |||||
if ($reason !== false) { | if ($reason !== false) { | ||||
switch ($reason) { | switch ($reason) { | ||||
case PhabricatorRepository::BECAUSE_REPOSITORY_IMPORTING: | case PhabricatorRepository::BECAUSE_REPOSITORY_IMPORTING: | ||||
$desc = pht('No, Repository Importing'); | $desc = pht('No, Repository Importing'); | ||||
break; | break; | ||||
case PhabricatorRepository::BECAUSE_AUTOCLOSE_DISABLED: | case PhabricatorRepository::BECAUSE_AUTOCLOSE_DISABLED: | ||||
$desc = pht('No, Autoclose Disabled'); | $desc = pht('No, Autoclose Disabled'); | ||||
break; | break; | ||||
▲ Show 20 Lines • Show All 111 Lines • Show Last 20 Lines |
LOL.