I have a bot that looks at the source of the pull request. In the event the pull request source is from a private repository the bot will not be able to clone/fetch these commits. Fortunately, I can obtain the patch (i.e. `git-format-patch` output) from a url provided by the pull request. Sadly, `git-am` can often fail when `git-merge` succeeds.
What is a reliable way of getting the pull request source branch that works even when the source is private?
Thanks for being here! I don't believe there is 100% reliable way to accomplish this when calling from private sources, I'll do some digging and post any updates here.
Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!