Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/editor/DiffusionRepositoryEditEngine.php
| Show First 20 Lines • Show All 462 Lines • ▼ Show 20 Lines | return array( | ||||
| PhabricatorRepositoryNotifyTransaction::TRANSACTIONTYPE) | PhabricatorRepositoryNotifyTransaction::TRANSACTIONTYPE) | ||||
| ->setIsCopyable(true) | ->setIsCopyable(true) | ||||
| ->setOptions( | ->setOptions( | ||||
| pht('Disable Notifications, Feed, and Herald'), | pht('Disable Notifications, Feed, and Herald'), | ||||
| pht('Enable Notifications, Feed, and Herald')) | pht('Enable Notifications, Feed, and Herald')) | ||||
| ->setDescription(pht('Configure how changes are published.')) | ->setDescription(pht('Configure how changes are published.')) | ||||
| ->setConduitDescription(pht('Change publishing options.')) | ->setConduitDescription(pht('Change publishing options.')) | ||||
| ->setConduitTypeDescription(pht('New notification setting.')) | ->setConduitTypeDescription(pht('New notification setting.')) | ||||
| ->setValue(!$object->getDetail('herald-disabled')), | ->setValue(!$object->isPublishingDisabled()), | ||||
| id(new PhabricatorBoolEditField()) | |||||
| ->setKey('autoclose') | |||||
| ->setLabel(pht('Autoclose')) | |||||
| ->setTransactionType( | |||||
| PhabricatorRepositoryAutocloseTransaction::TRANSACTIONTYPE) | |||||
| ->setIsCopyable(true) | |||||
| ->setOptions( | |||||
| pht('Disable Autoclose'), | |||||
| pht('Enable Autoclose')) | |||||
| ->setDescription(pht('Stop or resume autoclosing in this repository.')) | |||||
| ->setConduitDescription(pht('Change autoclose setting.')) | |||||
| ->setConduitTypeDescription(pht('New autoclose setting.')) | |||||
| ->setValue(!$object->getDetail('disable-autoclose')), | |||||
| id(new PhabricatorPolicyEditField()) | id(new PhabricatorPolicyEditField()) | ||||
| ->setKey('policy.push') | ->setKey('policy.push') | ||||
| ->setLabel(pht('Push Policy')) | ->setLabel(pht('Push Policy')) | ||||
| ->setAliases(array('push')) | ->setAliases(array('push')) | ||||
| ->setIsCopyable(true) | ->setIsCopyable(true) | ||||
| ->setCapability(DiffusionPushCapability::CAPABILITY) | ->setCapability(DiffusionPushCapability::CAPABILITY) | ||||
| ->setPolicies($policies) | ->setPolicies($policies) | ||||
| ->setTransactionType( | ->setTransactionType( | ||||
| Show All 40 Lines | |||||