Skip to content

Commit 5eef62c

Browse files
authored
Merge pull request #270 from TwanoO67/master
adding parameters on repositories->branches
2 parents f23e88e + 8f562d5 commit 5eef62c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/Gitlab/Api/Repositories.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ class Repositories extends AbstractApi
88
* @param int $project_id
99
* @return mixed
1010
*/
11-
public function branches($project_id)
11+
public function branches($project_id, array $parameters = [])
1212
{
13-
return $this->get($this->getProjectPath($project_id, 'repository/branches'));
13+
$resolver = $this->createOptionsResolver();
14+
return $this->get($this->getProjectPath($project_id, 'repository/branches'), $resolver->resolve($parameters));
1415
}
1516

1617
/**

0 commit comments

Comments
 (0)