Last active
January 23, 2022 02:35
-
-
Save mike-weiner/2d52ecc13b8ecb4732c45ada4c3a869c to your computer and use it in GitHub Desktop.
A bash script that will return a count of all open issues by Github username.
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/bash | |
gitUsernames=("github-username1" "github-username2") | |
echo "Open Issues (by user)" | |
echo "---" | |
# https://cli.github.com/manual/ | |
for username in ${gitUsernames[@]}; do | |
echo -n "$username: " | |
gh issue list --assignee "$username" --json title | jq '. | length' | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output format: