Skip to content

Generate SVG cards showing your GitHub statistics and programming language distribution

License

Notifications You must be signed in to change notification settings

TBXark/github-status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Status Generator

A tool to generate beautiful SVG cards showing your GitHub statistics and programming language distribution.

overview languages

Features

  • Generates an overview SVG card with GitHub statistics
  • Creates a languages SVG card showing your programming language distribution
  • Highly customizable through environment variables
  • Supports excluding specific repositories and languages
  • Smart filtering options for forked, archived, and private repositories
  • Flexible configuration for multiple GitHub owners
  • Webhook support for integration with other services

Installation

go install github.com/TBXark/github-status@latest

Usage

Configuration

All configuration is done through environment variables. Here are all the available options:

Environment Variable Type Description Default
ACCESS_TOKEN / GITHUB_TOKEN string GitHub access token for API authentication Required
CUSTOM_ACTOR / GITHUB_ACTOR string GitHub username Required
EXCLUDE_REPOS string[] Comma-separated list of repositories to exclude []
EXCLUDE_LANGS string[] Comma-separated list of languages to exclude []
INCLUDE_OWNER string[] Comma-separated list of GitHub owners to include [username]
IGNORE_PRIVATE_REPOS bool Whether to ignore private repositories false
IGNORE_FORKED_REPOS bool Whether to ignore forked repositories false
IGNORE_ARCHIVED_REPOS bool Whether to ignore archived repositories false
IGNORE_CONTRIBUTED_TO_REPOS bool Whether to ignore repositories you've contributed to false
IGNORE_LINES_CHANGED bool Whether to ignore lines of code changed in statistics false
IGNORE_REPO_VIEWS bool Whether to ignore repository view counts false
WEBHOOK_URL string URL for webhook notifications ""

Note: GITHUB_TOKEN is limited requests on GitHub API, so it is recommended to use a personal access token ACCESS_TOKEN with the repo scope.

Best Practices

Reference My GitHub Action

Create a repository action to automatically update the stats. The action will update the stats and push the changes to the main branch. And you can use it svg card in your README.md.

Thanks

This project was inspired by the jstrieb/github-stats project

License

github-status is released under the MIT license. See LICENSE for details.

About

Generate SVG cards showing your GitHub statistics and programming language distribution

Resources

License

Stars

Watchers

Forks

Packages

No packages published