Skip to content

Commit 6934f18

Browse files
Merge pull request #1 from sidneymarieanne/add-params-to-project-labels
add parameters when getting project labels
2 parents 2a55632 + d4f9cee commit 6934f18

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/Gitlab/Api/Projects.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,11 +493,14 @@ public function events($project_id, array $parameters = [])
493493

494494
/**
495495
* @param int $project_id
496+
* @param array $parameters
496497
* @return mixed
497498
*/
498-
public function labels($project_id)
499+
public function labels($project_id, array $parameters = [])
499500
{
500-
return $this->get($this->getProjectPath($project_id, 'labels'));
501+
$resolver = $this->createOptionsResolver();
502+
503+
return $this->get($this->getProjectPath($project_id, 'labels'), $resolver->resolve($parameters));
501504
}
502505

503506
/**

0 commit comments

Comments
 (0)