>'; } protected function execute(ConduitAPIRequest $request) { $results = array(); $projects = id(new ReleephProductQuery()) ->setViewer($request->getUser()) ->withActive(1) ->execute(); foreach ($projects as $project) { $repository = $project->getRepository(); $branches = $project->loadRelatives( id(new ReleephBranch()), 'releephProjectID', 'getID', 'isActive = 1'); foreach ($branches as $branch) { $full_branch_name = $branch->getName(); $cut_point_commit = $branch->loadOneRelative( id(new PhabricatorRepositoryCommit()), 'phid', 'getCutPointCommitPHID'); $results[] = array( 'project' => $project->getName(), 'repository' => $repository->getCallsign(), 'branch' => $branch->getBasename(), 'fullBranchName' => $full_branch_name, 'symbolicName' => $branch->getSymbolicName(), 'cutPoint' => $cut_point_commit->getCommitIdentifier(), ); } } return $results; } }