Mark Walsh
Mark Walsh

Reputation: 3361

Get the status of a pull request's checks

How can I programmatically get the following information? (1 required check)

One required check

I've looked at the response for getting a Pull Request by Id but there's nothing in there from what I can see. I've tried getting a Pull Request Status but that just returns an empty array.

Upvotes: 5

Views: 2249

Answers (1)

eorll
eorll

Reputation: 166

You can get it by retrieving a list of all the policy evaluation statuses for a specific pull request.

https://learn.microsoft.com/en-us/rest/api/azure/devops/policy/evaluations/list?view=azure-devops-rest-7.1

Upvotes: 5

Related Questions