We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f23e88e commit 8f562d5Copy full SHA for 8f562d5
lib/Gitlab/Api/Repositories.php
@@ -8,9 +8,10 @@ class Repositories extends AbstractApi
8
* @param int $project_id
9
* @return mixed
10
*/
11
- public function branches($project_id)
+ public function branches($project_id, array $parameters = [])
12
{
13
- return $this->get($this->getProjectPath($project_id, 'repository/branches'));
+ $resolver = $this->createOptionsResolver();
14
+ return $this->get($this->getProjectPath($project_id, 'repository/branches'), $resolver->resolve($parameters));
15
}
16
17
/**
0 commit comments