0
votes

Tyring to use the Azure DevOps Services Rest Api

https://docs.microsoft.com/en-us/rest/api/azure/devops/?view=azure-devops-rest-5.1

Can anyone suggest the correct API to call to obtain a List of Completed Pull Requests for a Repository

I have been looking at the Git Api, but it seems that particular API only returns PR's that have not yet been completed.

1

1 Answers

3
votes

This example available on the Rest Api doc site: Just completed pull requests

GET https://dev.azure.com/fabrikam/_apis/git/repositories/3411ebc1-d5aa-464f-9615-0b527bc66719/pullrequests?searchCriteria.status=completed&api-version=5.1