Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure CLI PR List Limit

I use Azure CLI to query on the list of PRs. Based on the following queries, it seems it has a limit on the number of returned results:

$ az repos pr list --status=all --query "length([])"
101

$ az repos pr list --status=completed --query "length([])"
101

$ az repos pr list --status=active --query "length([])"
101

$ az repos pr list --status=abandoned --query "length([])"
101

But I wasn't able to find any part of the documentation pointing this out.

Do you know if there's anyway to change this limit?

like image 926
Persian Astroman Avatar asked Sep 08 '26 16:09

Persian Astroman


1 Answers

I have tried below command and I use --top for getting the top pull requests like below:

According to Microsoft-Document --top command states,

Maximum number of pull requests to list.

az repos pr list --status=all --top 200

enter image description here

I have only 10 repos in my environment and got all 10 when used --top 200

enter image description here

If you are not getting the required x number using --top x (x is integer) then I would suggest you to raise a support ticket on the same

like image 105
RithwikBojja Avatar answered Sep 11 '26 16:09

RithwikBojja



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!