Differential D25252 Diff 843 src/applications/differential/editor/DifferentialRevisionEditEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/editor/DifferentialRevisionEditEngine.php
Show First 20 Lines • Show All 301 Lines • ▼ Show 20 Lines | $fields[] = id(new PhabricatorBoolEditField()) | ||||
->setKey('draft') | ->setKey('draft') | ||||
->setLabel(pht('Hold as Draft')) | ->setLabel(pht('Hold as Draft')) | ||||
->setIsFormField(false) | ->setIsFormField(false) | ||||
->setOptions( | ->setOptions( | ||||
pht('Autosubmit Once Builds Finish'), | pht('Autosubmit Once Builds Finish'), | ||||
pht('Hold as Draft')) | pht('Hold as Draft')) | ||||
->setTransactionType( | ->setTransactionType( | ||||
DifferentialRevisionHoldDraftTransaction::TRANSACTIONTYPE) | DifferentialRevisionHoldDraftTransaction::TRANSACTIONTYPE) | ||||
->setDescription(pht('Hold revision as as draft.')) | ->setDescription(pht('Hold revision as draft.')) | ||||
valerio.bozzolan: ✅ I verified this line with my big eyes | |||||
->setConduitDescription( | ->setConduitDescription( | ||||
pht( | pht( | ||||
'Change autosubmission from draft state after builds finish.')) | 'Change autosubmission from draft state after builds finish.')) | ||||
->setConduitTypeDescription(pht('New "Hold as Draft" setting.')) | ->setConduitTypeDescription(pht('New "Hold as Draft" setting.')) | ||||
->setValue($object->getHoldAsDraft()); | ->setValue($object->getHoldAsDraft()); | ||||
return $fields; | return $fields; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0
✅ I verified this line with my big eyes