From 597544cd6116a6e7cac2cdcf6f7bf06f153c3ad5 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Sat, 1 Dec 2018 11:33:44 -0500 Subject: [PATCH] build_manifest: Increase the number of search results This increase the number of search results when looking up user branches to 100 items. This should be sufficient for all of our users. Fixes #3 --- gitlab/build_manifest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitlab/build_manifest.py b/gitlab/build_manifest.py index 9ad506f0fd..9e16f16ca2 100755 --- a/gitlab/build_manifest.py +++ b/gitlab/build_manifest.py @@ -108,7 +108,7 @@ def request(path: str) -> List[Dict[str, str]]: def get_project_branch(project_id: int, name: str) -> Dict[str, str]: print(f"Searching for {name} branch in project {project_id}") - path = f"projects/{project_id}/repository/branches?search={name}" + path = f"projects/{project_id}/repository/branches?search={name}&per_page=100" results = request(path) if not results: