Last active
September 21, 2021 09:41
-
-
Save dspinellis/da22fe9f6e391fcc725821845667256d to your computer and use it in GitHub Desktop.
List the caller's pending GitHub pull request reviews
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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