I have been working on repository cleanup and we are planning to deny all the PRs which are just sitting and are so much behind the destination branch.
to identify which PR should be denied I need to know how many commits the branch is behind from destination branch. this we can get from bitbucket UI easily but as we need to automate this I want to know if there is any API to do the fetch the required info for me.
Thanks in advance
Regards,
Prasad