hnrobert/GitHub Stats Enhanced
Generate GitHub stats SVG cards for profile README
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github_user_name | GitHub username to generate stats for. Defaults to GITHUB_REPOSITORY_OWNER (the repo owner) if not set. | no | "" |
| self_github_token | Personal GitHub token (overrides GITHUB_TOKEN). Use this if the default token lacks permissions for private repos or org data. | no | "" |
| github_token | GitHub token for API access | no | "" |
| mode | Pipeline mode: 'all' (fetch + generate), 'fetch' (API → stats.yml only), 'generate' (stats.yml → SVGs only) | no | all |
| fetch_mode | Fetch strategy when mode is 'all' or 'fetch': 'full' (re-fetch all repos) or 'incremental' (reuse cached per-repo commit counts from data_file, only fetch new repos) | no | incremental |
| data_file | Path to the stats YAML file (used by fetch to write, generate to read) | no | "" |
| output_dir | Output directory for generated SVGs | no | dist |
| theme | Card theme: adaptive (auto dark/light), dark, or light | no | adaptive |
| exclude_repos | Comma-separated repos to exclude from language stats (owner/repo) | no | "" |
| contrib_exclude_repos | Comma-separated repos to exclude from contribution stats (owner/repo) | no | "" |
| responsive | Set to 'true' to generate SVGs with width=100% (scales to container width) | no | true |
| stats_width | Width in pixels for stats cards (default: 220) | no | "" |
| stats_height | Height in pixels for stats cards (default: 200) | no | "" |
| contributions_width | Width in pixels for contributions card (default: 460) | no | "" |
| contributions_height | Height in pixels for contributions card (default: 180) | no | "" |
| languages_width | Width in pixels for languages card (default: 500) | no | "" |
| languages_count | Number of languages to display in the languages card (default: 8) | no | "" |
| exclude_languages | Comma-separated list of languages to exclude | no | "" |
| weight_contributed_repos | Set to 'false' to count contributed (non-own) repo languages at full weight instead of by commit ratio | no | true |
| generate_report | Generate README.md (stats report) and index.html (demo page) alongside SVGs | no | true |
| target_repo | Repository name where SVGs are stored (defaults to GITHUB_REPOSITORY_NAME env var, then github_user_name) | no | "" |
| target_branch | Branch name where SVGs are stored | no | github-stats-enhanced |
Outputs
no outputs