Skip to content

Commit

Permalink
Merge pull request #413 from Geolim4/master
Browse files Browse the repository at this point in the history
Added missing parameters to repo/release API
  • Loading branch information
cursedcoder authored Jul 31, 2016
2 parents e030393 + 928177e commit 5b9c7c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Github/Api/Repository/Releases.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,13 @@ public function tag($username, $repository, $tag)
*
* @param string $username the user who owns the repo
* @param string $repository the name of the repo
* @param array $params the additional parameters like milestone, assignees, labels, sort, direction
*
* @return array
*/
public function all($username, $repository)
public function all($username, $repository, array $params = [])
{
return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/releases');
return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/releases', $params);
}

/**
Expand Down

0 comments on commit 5b9c7c4

Please sign in to comment.