Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistCommitWorkflow.php
| <?php | <?php | ||||
| /** | /** | ||||
| * Executes "svn commit" once a revision has been "Accepted". | * Executes "svn commit" once a revision has been "Accepted". | ||||
| * | |||||
| * @group workflow | |||||
| */ | */ | ||||
| final class ArcanistCommitWorkflow extends ArcanistBaseWorkflow { | final class ArcanistCommitWorkflow extends ArcanistBaseWorkflow { | ||||
| private $revisionID; | private $revisionID; | ||||
| public function getWorkflowName() { | public function getWorkflowName() { | ||||
| return 'commit'; | return 'commit'; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 316 Lines • ▼ Show 20 Lines | private function runSanityChecks(array $revision) { | ||||
| foreach ($confirm as $thing) { | foreach ($confirm as $thing) { | ||||
| if (!phutil_console_confirm($thing)) { | if (!phutil_console_confirm($thing)) { | ||||
| throw new ArcanistUserAbortException(); | throw new ArcanistUserAbortException(); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||