What is the right way in Git Stash 2.9 to get the changes associated with a pull-request Id, in order to be able to build them?
We are using Jenkins to retrieve changes from the main repo of our project and select the correct branch to build. Previously we were using the refs/pull-requests/xxx/from, for the branch specifier, but this no longer works. I am looking at the pull-request, but it is not clear if anything in there is giving the branch I should be using?
I don't want to have to clone the repo which the pull-request is sourcing.
Any help would be appreciated.
BTW I should mention the pull-request is being created via the REST API, in case that changes anything.
I spoke to a colleague and it turns out that after I create the pull-request in the REST API I need to a GET pull-requests/<pull-request id>/merge to have the merge branch created. Doing a POST on the URL will do the merge to destination branch.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.