The Github API (v3) allows you to get a listing of pull requests, and get more details on an individual pull request. What I can\'t seem to find is the name of the branch th
Access a Pull Request URL. Let's use https://api.github.com/repos/github/gitignore/pulls/566 as an example.
Parse the JSON object.
A Pull Request references two branches. The base branch is the merge target. Usually this is the master branch of the repository.
base.labelisgithub:master, meaning it's themasterbranch for >github/gitignore.base.refis the branch name "master".base.shais the current SHA of that branch.
The head branch is what you're merging into the base.
head.labelisfidelski:add-obvious-autotools-files, meaning it's theadd-obvious-autotools-filesbranch forfidelski/gitignore.head.refis the branch nameadd-obvious-autotools-files.head.shais the current SHA of that branch.