azure-devopsazure-cli

How to specify the repository for az repos pr policy list command?


The Microsoft documentation says that you can use az repos pr policy list --id to list the policies on a PR.

However, it gives no way to specify which repository the PR belongs to. How do I do this? I find it absurd that there is no --repository flag on this command, and I haven't been able to find a solution on google.


Solution

  • After further research, I can confirm that PR IDs are in fact unique across repositories, so specifying the repository is not needed.