Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/editor/DiffusionRepositoryEditEngine.php
Show First 20 Lines • Show All 206 Lines • ▼ Show 20 Lines | final class DiffusionRepositoryEditEngine | ||||
protected function buildCustomEditFields($object) { | protected function buildCustomEditFields($object) { | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$policies = id(new PhabricatorPolicyQuery()) | $policies = id(new PhabricatorPolicyQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->setObject($object) | ->setObject($object) | ||||
->execute(); | ->execute(); | ||||
$track_value = $object->getDetail('branch-filter', array()); | $track_value = $object->getTrackOnlyRules(); | ||||
$track_value = array_keys($track_value); | |||||
$autoclose_value = $object->getAutocloseOnlyRules(); | $autoclose_value = $object->getAutocloseOnlyRules(); | ||||
$automation_instructions = pht( | $automation_instructions = pht( | ||||
"Configure **Repository Automation** to allow Phabricator to ". | "Configure **Repository Automation** to allow Phabricator to ". | ||||
"write to this repository.". | "write to this repository.". | ||||
"\n\n". | "\n\n". | ||||
"IMPORTANT: This feature is new, experimental, and not supported. ". | "IMPORTANT: This feature is new, experimental, and not supported. ". | ||||
"Use it at your own risk."); | "Use it at your own risk."); | ||||
▲ Show 20 Lines • Show All 280 Lines • Show Last 20 Lines |