ghreport - Generate useful reports from GitHub repository issues
This utility generates reports that can be useful to identify issues in your repository that may be stale, or that may need a response.
It can also generate a chart of open bug counts over time.
See CONTRIBUTING.md for build instructions, or install from PyPI with:
python -m pip install ghreport
Use ghreport -h for help.
For an example report, see https://github.com/gramster/ghreport/blob/main/example.md or you can see these in an automated form for my teams at https://github.com/gramster/python-reports
Interactive Dashboard
ghreport includes an interactive web dashboard with multi-repo support, caching, and charts.
Setup
Install the dashboard dependencies:
pip install ghreport[dashboard]
Running
export GH_TOKEN=your_github_token
ghreport dashboard
On first run, a config.toml file is created automatically. Repos can be added from the web UI, or you can edit the config file directly:
[[repos]]
owner = "microsoft"
name = "debugpy"
bug_label = "bug"
The database is also seeded with default common team members (dependabot, app/copilot-swe-agent) which can be managed from the Team page.
The dashboard is available at http://localhost:8000. API docs are at http://localhost:8000/docs.
Options:
-p, --port— Port (default: 8000)-H, --host— Host (default: 0.0.0.0)-c, --config— Path to TOML config file (created if missing)
Features
- Multi-repo support — Track multiple repositories, add/remove from the UI
- SQLite caching — Reduces GitHub API calls with incremental sync
- Background sync — Periodic refresh via APScheduler
- Reports — Issue revisits, PR activity, closed issues (same as CLI)
- Charts — Open issue counts, time to merge/close/respond, label frequency, files/lines changed, top terms
- Aggregate views — Cross-repo summary and charts
Frontend Development
The frontend is a Vue 3 + Vite SPA in ghreport/dashboard/frontend/:
cd ghreport/dashboard/frontend
npm install
npm run dev # Dev server with API proxy to localhost:8000
npm run build # Production build to dist/
Development
This project uses flit. First install flit:
python -m pip install flit
Then to build:
flit build
To install locally:
flit install
To publish to PyPI:
flit publish
Version History
0.1 Initial release
0.2 More control flags
0.3 Add -o option
0.4 Apply strftime to output file name
0.5 Added markdown support
0.6 Remove hardcoded owner from query
0.8 Better team option
0.9 Add proper markdown line rule
0.11 Fix 3rd party report; exclude issues created by team from other reports
0.12 Fix typo
0.14 Only fetch open issues
0.15 Fix non-async sleep.
0.16 Added ability to get LLM training data.
0.90 Swallow exception from matplotlib
0.91 More robust in the face of matplotlib plot failures
1.5 Current CLI version
2.0 Interactive web dashboard (FastAPI + Vue 3), core module extraction, multi-repo support, SQLite caching
Metadata
Release files for ghreport 2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ghreport-2.3.tar.gz | 85.2 kB | Without provenance | Details for ghreport-2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ghreport-2.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for ghreport-2.3-py2.py3-none-any.whl |
Total release size: 192.6 kB
Release files / ghreport-2.3.tar.gz
| Download URL | ghreport-2.3.tar.gz |
|---|---|
| Size | 85.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
84bf6e52e5273c4e39ce06175db32abd7577d6f3757e6810f88d72c7bacb311f
|
|
BLAKE2b-256 checksum How to use checksums |
248bf7dc1afa5d27686aa7d8b5150fc180b07539d23ba93c3303458361e00ab9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|
Release files / ghreport-2.3-py2.py3-none-any.whl
| Download URL | ghreport-2.3-py2.py3-none-any.whl |
|---|---|
| Size | 107.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
dd1cb55cd90b89bbcb1480351ce4229070e1ac284186508aed96a3a6f1c3294b
|
|
BLAKE2b-256 checksum How to use checksums |
fb09039d65b393ef7355fd91ab2b5cb3d6f3f8b30aaeaf44077f54a5de8d9577
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|
Security for ghreport 2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.