mirror of
				https://github.com/openSUSE/osc.git
				synced 2025-10-31 03:22:15 +01:00 
			
		
		
		
	Set limit=0 to disable pagination in all relevant git-obs subcommands
This commit is contained in:
		| @@ -180,6 +180,7 @@ class PullRequest: | ||||
|  | ||||
|         q = { | ||||
|             "state": state, | ||||
|             "limit": -1, | ||||
|         } | ||||
|         url = conn.makeurl("repos", owner, repo, "pulls", query=q) | ||||
|         return conn.request("GET", url) | ||||
| @@ -220,6 +221,8 @@ class PullRequest: | ||||
|             "created": created, | ||||
|             "mentioned": mentioned, | ||||
|             "review_requested": review_requested, | ||||
|             # HACK: limit=-1 doesn't work, the request gets stuck; we need to use a high number to avoid pagination | ||||
|             "limit": 10**6, | ||||
|         } | ||||
|         url = conn.makeurl("repos", "issues", "search", query=q) | ||||
|         return conn.request("GET", url) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user