Using fzf to view Github review requests
gh pr list --search "user-review-requested:@me" | fzf --preview 'gh pr view {1}' | awk '{print $1}' | xargs gh issue view --web
This can be encapsulated in a function and added to your dotfiles:
reviews() {
gh pr list --search "user-review-requested:@me" | fzf --preview 'gh pr view {1}' | awk '{print $1}' | xargs gh issue view --web
}
…and now typing reviews
and hitting enter gives us a nice, searchable list of review requests waiting for us along with a PR overview in the preview window!