diff --git a/lib/Github/Api/Repository/Releases.php b/lib/Github/Api/Repository/Releases.php index 94d130ef031..e25b1e7ef84 100644 --- a/lib/Github/Api/Repository/Releases.php +++ b/lib/Github/Api/Repository/Releases.php @@ -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); } /**