diff --git a/lib/Github/Api/Repo.php b/lib/Github/Api/Repo.php index 9d98c3f1fe5..755c23bb91c 100644 --- a/lib/Github/Api/Repo.php +++ b/lib/Github/Api/Repo.php @@ -420,12 +420,13 @@ public function languages($username, $repository) * * @param string $username the user who owns the repository * @param string $repository the name of the repository + * @param array $params the additional parameters like milestone, assignees, labels, sort, direction * * @return array list of the repository tags */ - public function tags($username, $repository) + public function tags($username, $repository, array $params = []) { - return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/tags'); + return $this->get('repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/tags', $params); } /**