/** * @deprecated Use {@see \Bart\Gerrit\Change} * Query gerrit for an approved change * @param string $changeId Gerrit Change-Id * @param string $commitHash Latest commit hash pushed to gerrit */ public function getApprovedChange($changeId, $commitHash) { $reviewScore = $this->config->reviewScore(); $verifiedScore = $this->config->verifiedScore(); $verifiedOption = ''; if ($verifiedScore !== null) { $verifiedOption = ",Verified={$verifiedScore}"; } return $this->getChange($changeId, array('commit' => $commitHash, 'label' => "CodeReview={$reviewScore}{$verifiedOption}")); }