I am trying to fetch the merged pull request details of the StageDeploy branch, but it's also returning the PRs for the prefix and suffix branches, such as devStageDeploy and StageDeploytest, which I don't want.
Hello @Jyoti Varade ,
thanks for reaching out!
Checking your example API call, I think the filtering syntax used is slightly incorrect, so that's likely why you are not seeing the results you were expecting.
If you want to filter all the MERGED pull requests with the destination branch named StageDeploy, the following endpoint can be used :
https://api.bitbucket.org/2.0/repositories/WORKSPACE/REPOSITORY/pullrequests/?q=destination.branch.name%3DStageDeploy'
Where %3D is the encoded value of "=" (equal sign).
Could you try using the filtering as in the example above and let us know how it goes?
Thank you, @Jyoti Varade !
Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.