title: Is there a way to get all the changes in a pull request from command line?
body: <p>I have to find a way to collect all the code diffs in a pull request from command line. From github UI I know I can easily view the diffs and the branch names, however, I have to automate some task from command line. I tried to use <code>git diff branch1..branch2</code> to get all the modified files and code changes in the PR. But how do I figure out branch1 and branch2 from command line?</p>