Changeset View
Changeset View
Standalone View
Standalone View
arcanist/workflow/ArcanistLandBotWorkflow.php
Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | public function run() { | ||||
$revision = $this->getArgument('revision'); | $revision = $this->getArgument('revision'); | ||||
if ($revision) { | if ($revision) { | ||||
array_push($landArgs, '--revision'); | array_push($landArgs, '--revision'); | ||||
array_push($landArgs, $revision); | array_push($landArgs, $revision); | ||||
} | } | ||||
$branch = $this->getArgument('branch'); | $branch = $this->getArgument('branch'); | ||||
if ($branch) { | if (!empty($branch)) { | ||||
array_push($landArgs, $branch); | array_push($landArgs, $branch[0]); | ||||
} | } | ||||
$landWorkflow = $this->buildChildWorkflow('land', $landArgs); | $landWorkflow = $this->buildChildWorkflow('land', $landArgs); | ||||
$landWorkflow->run(); | $landWorkflow->run(); | ||||
if ($this->getArgument('preview')) { | if ($this->getArgument('preview')) { | ||||
return 0; | return 0; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |