diff --git a/lib/Gitlab/Api/Repositories.php b/lib/Gitlab/Api/Repositories.php index 14313b66e..f9ce70cc3 100644 --- a/lib/Gitlab/Api/Repositories.php +++ b/lib/Gitlab/Api/Repositories.php @@ -176,6 +176,16 @@ public function commit($project_id, $sha) return $this->get($this->getProjectPath($project_id, 'repository/commits/'.$this->encodePath($sha))); } + /** + * @param int $project_id + * @param $sha + * @return mixed + */ + public function commitrefs($project_id, $sha) + { + return $this->get($this->getProjectPath($project_id, 'repository/commits/'.$this->encodePath($sha) . '/refs')); + } + /** * @param int $project_id * @param array $parameters (