Forrest logo
back to the az tool

az-repos:tldr:c4fa2

az-repos: List all active Pull Requests on a specific repository within a specific project.
$ az repos pr list --project ${project_name} --repository ${repository_name} --status active
try on your machine

This command is using the Azure CLI (Command Line Interface) to list pull requests (PRs) in a specific Azure DevOps project and repository that have an active status.

Here's a breakdown of the command:

  • az repos pr list: This part of the command is instructing the CLI to list pull requests.

  • --project ${project_name}: This specifies the Azure DevOps project to work with. ${project_name} is a placeholder that needs to be replaced with the actual name of the project.

  • --repository ${repository_name}: This specifies the Azure DevOps repository within the project to work with. ${repository_name} is a placeholder that needs to be replaced with the actual name of the repository.

  • --status active: This option is used to filter the pull requests based on their status. In this case, it specifies to only show pull requests that are in an active status. Other values for the --status option could be "abandoned", "completed", or "all" to show all pull requests regardless of their status.

By running this command with the appropriate project and repository names, you will get a list of active pull requests within that repository.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the az tool