A lightweight CLI tool that queries the GitHub REST API to generate structured Markdown and PDF contribution reports with visual charts for any repository. Ideal for academic course evaluations, engineering performance reviews, and open-source contribution portfolios. Features Full Activity Breakdown: Pull Requests, formal Code Reviews, inline diff comments, Issues, discussion comments, commits, and maintenance/merge classification. Visual Charts: Automatically generates contribution distribution, weekly cadence, and code review outcome charts using matplotlib. Clean PDF Export: Exports a print-ready PDF directly via headless Microsoft Edge or Google Chrome (--pdf). Noise Filtering: Automatically excludes unmerged/cancelled PRs, not_planned issues, and custom --ignore issue/PR numbers. Modular Narrative Sections: Plug in optional --summary (Executive Summary) and --notes (Technical Notes) Markdown files. Installation pip install gh-contrib-report Or install directly from source: git clone https://github.com/limacca1978/gh-contrib-report.git cd gh-contrib-report pip install -e . Set a GitHub Personal Access Token to increase the API rate limit from 60 to 5,000 requests/hour: # PowerShell $env:GITHUB_TOKEN = "ghp_your_token_here" # Bash / Zsh export GITHUB_TOKEN="ghp_your_token_here" Run the report generator: # Basic Markdown report + charts gh-contrib-report --repo owner/repo --user username # Full report with PDF export, custom metadata, and excluded PRs/Issues gh-contrib-report \ --repo owner/repo \ --user username \ --author "Your Name" \ --summary executive_summary.md \ --notes technical_notes.md \ --ignore 102 103 \ --pdf CLI Options Development pip install -e ".[dev]" ruff check . pytest -v MIT License — see LICENSE for details.
AI NEWS JOURNAL
Hacker News Show HNAI NEWS / JOURNAL
Show HN: Gh-Contrib-Report – CLI and GitHub Action for Markdown/PDF Reports
Article URL: https://github.com/limacca1978/gh-contrib-report Comments URL: https://news.ycombinator.com/item?id=50703257 Points: 1 # Comments: 0
번역 서비스가 일시 중지되어 원문을 표시합니다.