Fetch&rebase support for pull requests
I work on projects on GitHub that receives a fair number of pull requests, and most of the time I need to make some slight adjustments on them before merging changes. I also do fetch+rebase when merging pull requests in an attempt to create more linear history. I find it easier to comprehend what was going on that way.
To that end, I added a command to do this in one shot:
- you run "github fetch-pull 3" where 3 indicates a pull request ID.
- the command looks at your remote and figure out which repository this is.
- it then fetches and rebases the pull request, then finishes.
If you find this command useful, would you please consider merging it?
Here's a commit that adds support for private repos to kohsuke's fetch-pull feature:
https://github.com/nixon/github-gem/commit/d856a17f5c0c75c0e9f785ee501616b597cdfd1d
The change mentioned in the comment from nixon is now merged into this pull request.