From 5edc57f0a74903cefa80cf09a96c3399e7b3630f Mon Sep 17 00:00:00 2001 From: Stephen Frank Date: Tue, 27 Jul 2021 18:09:11 +0200 Subject: [PATCH] Add pagination params to Apps::listRepositories method --- lib/Github/Api/Apps.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/Github/Api/Apps.php b/lib/Github/Api/Apps.php index bb2a2c463f9..6d777da07d8 100644 --- a/lib/Github/Api/Apps.php +++ b/lib/Github/Api/Apps.php @@ -141,9 +141,13 @@ public function removeInstallation($installationId) * * @return array */ - public function listRepositories($userId = null) + public function listRepositories($userId = null, $page = 1, $perPage = 30) { - $parameters = []; + $parameters = [ + "page" => $page, + "per_page" => $perPage, + ]; + if ($userId) { $parameters['user_id'] = $userId; }