I am currently working on a project hosted on Bitbucket. My client is having another developer work on some other features in parallel so I gave that developer read access to my repo and he forked it. I do not have access to his fork.
He recently finished a feature and made a pull request to my master. Is there a way, prior to approving and merging his PR into my master, for me to actually pull the code in his PR down to test it if I don't have access to his repo?
Hello @Brent Kelly,
Thanks for reaching out.
You can't clone that fork repo if it is private but you can pull a patch for your PR, then apply it to your repository – this way you'll reconstruct the changes suggested in that PR locally.
Here's the API endpoint to get the patch. If you need this just once and prefer to use your session authentication, you can call the API this way:
If you plan to use it on a regular basis or in a script, you'll need to call our API domain and use one of the supported authentication methods:
You can then apply a patch using git apply command, see relevant documentation for Git.
Hope this helps. Let me know if you have any questions.
Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster ! While we’re all excited about the new improvements to Bitbucket ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event