Skip to content

Instantly share code, notes, and snippets.

@mike-weiner
Last active January 23, 2022 02:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mike-weiner/2d52ecc13b8ecb4732c45ada4c3a869c to your computer and use it in GitHub Desktop.
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.
#!/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
@mike-weiner
Copy link
Author

Output format:

Open Issues (by user)
---
github-username1: <open-issue-count>
github-username2: <open-issue-count>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment