I need to get all the pull requests from /hotfix branches to /main (e.g. refs/heads/hotfix/branch1, refs/heads/hotfix/branch2, etc. to /main).
https://dev.azure.com/{ORG}/{PROJECT}/_apis/git/pullrequests?searchCriteria.reviewerId={ID}&searchCriteria.status=completed&searchCriteria.sourceRefName=refs/heads/hotfix/&searchCriteria.targetRefName=refs/heads/main
I get no branches under hotfix, however if I put the specific branch under hotfix/, like “hotfix/branch” it works. I would like to get all branches that are under “refs/heads/hotfix”.
Tried with refs/heads/hotfix/* (this doesn’t work). I also tried with &includeChildren=true , also doesn’t work.
Manuel TP is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.