Display github pull request on the command line in tree view
-
Get
GITHUB_API_TOKEN
(checkrepo
) -
Add
GITHUB_API_TOKEN
to .bashrc or .zshrc.export GITHUB_API_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-
Execute
bundle install
-
Put the script in an executable directory
- ex)
/usr/local/bin/pr-tree
ln -s /Users/volpe/repo/github.com/volpe28v/pr-tree/bin/pr-tree /usr/local/bin/pr-tree
- ex)
-
Run the following command
$ pr-tree
- Filter by user
$ pr-tree -k hoge
- Filter by reviewer
$ pr-tree -r hoge
- Specify github url
$ pr-tree -u ssh://[email protected]/hoge/fuga.git
- Show as markdown
$ pr-tree -m
- Show changed files
$ pr-tree -f