Skip to content

Commit 7bb056d

Browse files
committed
Add pagination to load tags
1 parent 4516c1f commit 7bb056d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/Gitlab/Api/Repositories.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,14 @@ public function unprotectBranch($project_id, $branch_name)
7474

7575
/**
7676
* @param int $project_id
77+
* @param array $parameters
7778
* @return mixed
7879
*/
79-
public function tags($project_id)
80+
public function tags($project_id, array $parameters = [])
8081
{
81-
return $this->get($this->getProjectPath($project_id, 'repository/tags'));
82+
$resolver = $this->createOptionsResolver();
83+
84+
return $this->get($this->getProjectPath($project_id, 'repository/tags'), $resolver->resolve($parameters));
8285
}
8386

8487
/**

0 commit comments

Comments
 (0)