From 508b5f3a9d5f2b84861cbaba54c3d6dab94a0857 Mon Sep 17 00:00:00 2001 From: "steven.liatti" <steven.liatti@hesge.ch> Date: Fri, 4 Oct 2019 14:29:46 +0200 Subject: [PATCH] Fix bug with limit of 20 first projects forks (see https://docs.gitlab.com/ee/api/README.html#pagination) --- clone_all.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clone_all.py b/clone_all.py index d870325..36fd50e 100755 --- a/clone_all.py +++ b/clone_all.py @@ -13,7 +13,7 @@ token = sys.argv[1] project_id = sys.argv[2] base_url = 'https://gitedu.hesge.ch/api/v4/projects/' -params = {'simple': 'true'} +params = {'simple': 'true', 'per_page': 100} headers = {'PRIVATE-TOKEN': token} repositories = requests.get(base_url + project_id + '/forks', params=params, headers=headers).json() -- GitLab