Skip to content

Commit 704f8fb

Browse files
committed
Added missing parameters to repo/tags API, again
1 parent facf063 commit 704f8fb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/Github/Api/GitData/Tags.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@ class Tags extends AbstractApi
1616
*
1717
* @param string $username
1818
* @param string $repository
19-
* @param array $params the additional parameters like milestone, assignees, labels, sort, direction
2019
*
2120
* @return array
2221
*/
23-
public function all($username, $repository, array $params = [])
22+
public function all($username, $repository)
2423
{
25-
return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/git/refs/tags', $params);
24+
return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/git/refs/tags');
2625
}
2726

2827
/**

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)