Download all issues from a GitHub repo and plot opened/closed activity over time, and measures the accumulated backlog.
get_issues.sh- fetches all issues via
gh apiand writesissues.json plot_issues.py- reads the JSON and plots weekly/rolling activity + cumulative backlog
README.org- this file
- GitHub CLI (gh)
- jq
- Python 3 with
pandasandmatplotlib(e.g., in a venv)
# (optional) venv
python3 -m venv .venv && . .venv/bin/activate
pip install --upgrade pip pandas matplotlib- Log in to GitHub (once):
gh auth login- Update your local database of issues:
chmod +x get_issues.sh
./get_issues.sh # creates issues.json- Plot:
chmod +x ./plot_issues.py
./plot_issues.pyYou can also edit some variables at the top of ./plot_issues.py to modify the output, including RESAMPLE and ROLLWIN.
Example output