getWorkflowName() == "land") { $build_status_str = file_get_contents(self::TREESTATUS_URL); $build_status = json_decode($build_status_str); $console = PhutilConsole::getConsole(); if ($build_status->is_open) { $console->writeOut( "** %s ** %s\n", pht('Master OK!'), pht('Merging is allowed')); return; } else { $console->writeOut( "%s\n** %s ** %s\n", pht(self::FAIL_WHALE), pht('Master Borked :('), pht('Don\'t land unless your diff fixes it!')); if (!$console->confirm(pht('Land revision anyways?'))) { throw new ArcanistUserAbortException(); } } } } }