prf - PullRequest Fetch - lists open-pullrequests to stdout
Is checking out a git branch for code review bothering you? In general, you may open the PR's page then copy the branch name then back to terminal then checkout the branch.
Checkout the git branch corresponding to a open-pullrequest interactivly using peco:
prf | peco | cut -f3 | xargs git checkout
go get github.com/yuku-t/prf
Or clone the repository and run:
Then issue a personal access token with "repo" scope and register it as "api.github.com" machine's password to netrc file:
cat <<-EOS >>~/.netrc machine api.github.com password PERSONAL_ACCESS_TOKEN EOS chmod 600 ~/.netrc