Skip to content

Commit 0707e4a

Browse files
authored
Merge pull request #238 from blankse/pagination_tags
Add pagination to load tags
2 parents 4516c1f + 7bb056d commit 0707e4a

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)