0

I'm looking at building some integration between Github and Team Services builds so that I can get a Team Services build running when a Github pull request is created or updated; this isn't supported directly right now that I can tell.

However, looking at the documentation for the REST API for Team Services build, it says I need to pass in the name of the branch to build in the body.

Pull requests don't have a branch. I do have a commit ID though. Can I pass the SHA-1 for the commit as the branch name? Or is there some other way to tell it to go to a specific commit?

4

1 回答 1

2

You can specify the pull request as the source branch via this format:

refs/pull/pullrequestid/head

enter image description here

于 2016-07-29T06:09:51.960 回答