I want to map commit to its Pull request for a repository. Now i am using bitbucket's api to fetch pull request for a particular commit. But the issue is that api is giving pull request to different branches for that commit. Now how to identify which branch should we map that commit PR to