Skip to content

Commit 5b9c7c4

Browse files
authored
Merge pull request KnpLabs#413 from Geolim4/master
Added missing parameters to repo/release API
2 parents e030393 + 928177e commit 5b9c7c4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/Github/Api/Repository/Releases.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,13 @@ public function tag($username, $repository, $tag)
4444
*
4545
* @param string $username the user who owns the repo
4646
* @param string $repository the name of the repo
47+
* @param array $params the additional parameters like milestone, assignees, labels, sort, direction
4748
*
4849
* @return array
4950
*/
50-
public function all($username, $repository)
51+
public function all($username, $repository, array $params = [])
5152
{
52-
return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/releases');
53+
return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/releases', $params);
5354
}
5455

5556
/**

0 commit comments

Comments
 (0)