Skip to content

Instantly share code, notes, and snippets.

@jwendell
Created November 18, 2021 16:31
Show Gist options
  • Save jwendell/16283c42606466d4637940b2f43d7a63 to your computer and use it in GitHub Desktop.
Save jwendell/16283c42606466d4637940b2f43d7a63 to your computer and use it in GitHub Desktop.
List open PR's in maistra org
#!/bin/bash
for repo in $(gh repo list --no-archived maistra --json name -q ".[].name"); do
output=$(gh --repo "maistra/${repo}" pr list --json url,title,baseRefName -q ".[] | .url + \" - \" + .baseRefName + \" - \" + .title")
if [ -n "${output}" ]; then
echo "PR's in ${repo}:"
echo "${output}"
echo
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment