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
This commit is contained in:
Nicolas Dufresne 2018-12-01 11:33:44 -05:00
parent 06c76e1d63
commit 597544cd61

View file

@ -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: