Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Ground Controller Lvl 1
Message 1 of 2

Obtaining pull request source commits

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?

1 Reply
Community Manager
Message 2 of 2

Re: Obtaining pull request source commits

Hey @TomMD,

 

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.


Best,
AndreaG

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!