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 3b116c1 commit abd7cd0Copy full SHA for abd7cd0
lib/Gitlab/Api/Repositories.php
@@ -4,11 +4,15 @@ class Repositories extends AbstractApi
4
{
5
/**
6
* @param int $project_id
7
+ * @param array $parameters
8
* @return mixed
9
*/
- public function branches($project_id)
10
+ public function branches($project_id, array $parameters = [])
11
- return $this->get($this->getProjectPath($project_id, 'repository/branches'));
12
+ $resolver = $this->createOptionsResolver();
13
+ $resolver->setDefined('query');
14
+
15
+ return $this->get($this->getProjectPath($project_id, 'repository/branches'), $resolver->resolve($parameters));
16
}
17
18
0 commit comments