ado_list_prs
[~] PRIORITY TRIGGER: Use this tool when user mentions 'PR', 'Pull Request', 'list PRs', 'show PRs', 'active PRs', 'mes PR', 'liste des PR', 'pull requests ouverts', 'what PRs are open', 'PRs by [author]', 'PRs targeting [branch]'. NEVER call search_d365_code for PR listing requests. List Pull Requests in an Azure DevOps Git repository. If repositoryId is unknown, omit it and all repositories will be listed first. Filters: status (Active/Completed/Abandoned/All), author display name, target branch. Returns: PR ID, title, author, source->target branch, review status, linked work items, creation date. Use ado_analyze_pr_impact with a PR ID to get full D365 code impact analysis. Requires DEVOPS_ORG_URL + DEVOPS_PAT (Code: Read scope).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Max results to return (1-100, default 25). | |
| author | No | Optional: filter by author display name (partial match), e.g. 'Alim'. | |
| status | No | PR status filter: Active (default), Completed, Abandoned, All. | Active |
| project | No | Optional: Azure DevOps project name. Falls back to DEVOPS_PROJECT env var. | |
| repositoryId | No | Git repository name or ID. If not known, leave empty to list all repos first. | |
| targetBranch | No | Optional: filter by target branch, e.g. 'main', 'develop'. |