Skip to content

Commit 50eecee

Browse files
authored
Merge pull request KnpLabs#416 from Geolim4/master
Added missing parameters to repo/tags API
2 parents 489868b + 704f8fb commit 50eecee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/Github/Api/Repo.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,12 +420,13 @@ public function languages($username, $repository)
420420
*
421421
* @param string $username the user who owns the repository
422422
* @param string $repository the name of the repository
423+
* @param array $params the additional parameters like milestone, assignees, labels, sort, direction
423424
*
424425
* @return array list of the repository tags
425426
*/
426-
public function tags($username, $repository)
427+
public function tags($username, $repository, array $params = [])
427428
{
428-
return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/tags');
429+
return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/tags', $params);
429430
}
430431

431432
/**

0 commit comments

Comments
 (0)