git-pr - Command-line tool to query GitHub pull requests
version 0.6.0
$ git pr $ git pr list closed # not shown by default $ git pr show 7 # also includes comments $ git pr patch 7 # can be piped to colordiff if you like colors $ git pr checkout 7 # create upstream tracking branch pr/7 $ git pr help $ git pr authorize # Get access token for commands below $ git pr close 7 $ git pr open 7 $ git pr comment 7 'This is good stuff!'
Install it by just typing in these few lines in your shell:
$ curl -L http://cpanmin.us | perl - --self-upgrade $ cpanm App::GitHubPullRequest
The following external programs are required:
git(1)
curl(1)
stty(1)
If you don't authenticate with GitHub using the authorize command, it will use unauthenticated API requests where possible, which has a rate-limit of 60 requests. If you authorize first it should allow 5000 requests before you hit the limit.
You must be standing in a directory that is a git dir and that directory must have a remote that points to github.com for the tool to work.
App::GitHubPullRequest
This module uses semantic versioning concepts from http://semver.org/.
Robin Smidsrød <robin@smidsrod.no>
This software is copyright (c) 2020 by Robin Smidsrød.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install App::GitHubPullRequest, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::GitHubPullRequest
CPAN shell
perl -MCPAN -e shell install App::GitHubPullRequest
For more information on module installation, please visit the detailed CPAN module installation guide.