Skip to content

Commit facf063

Browse files
committed
Added missing parameters to repo/tags API
1 parent 0728cee commit facf063

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/Github/Api/GitData/Tags.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ 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
1920
*
2021
* @return array
2122
*/
22-
public function all($username, $repository)
23+
public function all($username, $repository, array $params = [])
2324
{
24-
return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/git/refs/tags');
25+
return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/git/refs/tags', $params);
2526
}
2627

2728
/**

0 commit comments

Comments
 (0)