From 7e454f7648e13fd170127b4232b2c852900db4fa Mon Sep 17 00:00:00 2001 From: soumyadghosh Date: Thu, 14 Dec 2023 21:06:03 +0530 Subject: [PATCH] [repo_service]: added more parameters for `listorgrepos` --- lib/src/common/repos_service.dart | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/src/common/repos_service.dart b/lib/src/common/repos_service.dart index a274710e..e468a769 100644 --- a/lib/src/common/repos_service.dart +++ b/lib/src/common/repos_service.dart @@ -58,9 +58,19 @@ class RepositoriesService extends Service { /// /// API docs: https://developer.github.com/v3/repos/#list-organization-repositories Stream listOrganizationRepositories(String org, - {String type = 'all'}) { + {String type = 'all', + String sort = 'created', + String direction = 'asc', + int perpage = 30, + int page = 1}) { ArgumentError.checkNotNull(org); - final params = {'type': type}; + final params = { + 'type': type, + 'sort': sort, + 'direction': direction, + 'per_page': perpage, + 'page': page, + }; return PaginationHelper(github).objects, Repository>( 'GET', pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy