My requirement is to tell the user if his/her PR got deployed successfully or not So I thought,
- I can ask user about his PR#
- Using PR# - Fetch Build Details
- Using BuildID from Step 2, find deployment information
I stuck at step 2 I am using below documentation to fetch build details. https://docs.microsoft.com/en-us/rest/api/azure/devops/build/builds/list?view=azure-devops-rest-6.0
Not able to find correct usage of reasonFilter parameter to pass pull request id to fetch build details API URL Info
Can someone help how exactly to use reasonFilter parameter here tried this _apis/build/builds?api-version=5.1&$top=1&reasonFilter=pullrequest=20056