Skip to content

Instantly share code, notes, and snippets.

@dspinellis
Last active September 21, 2021 09:41
Show Gist options
  • Save dspinellis/da22fe9f6e391fcc725821845667256d to your computer and use it in GitHub Desktop.
Save dspinellis/da22fe9f6e391fcc725821845667256d to your computer and use it in GitHub Desktop.
List the caller's pending GitHub pull request reviews
#!/bin/sh
#
# List the caller's pending GitHub pull request reviews
#
user=$(git config github.user)
gh pr list --json number,title,reviewRequests -q '.[] | select(.reviewRequests | any(.login == "'$user'")) | ["#" + (.number|tostring), .title] | @tsv'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment