Categorygithub.com/TBXark/github-status
repositorypackage
0.0.0-20241231053405-79273d9f1f5d
Repository: https://github.com/tbxark/github-status.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

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 VariableTypeDescriptionDefault
ACCESS_TOKEN / GITHUB_TOKENstringGitHub access token for API authenticationRequired
CUSTOM_ACTOR / GITHUB_ACTORstringGitHub usernameRequired
EXCLUDE_REPOSstring[]Comma-separated list of repositories to exclude[]
EXCLUDE_LANGSstring[]Comma-separated list of languages to exclude[]
INCLUDE_OWNERstring[]Comma-separated list of GitHub owners to include[username]
IGNORE_PRIVATE_REPOSboolWhether to ignore private repositoriesfalse
IGNORE_FORKED_REPOSboolWhether to ignore forked repositoriesfalse
IGNORE_ARCHIVED_REPOSboolWhether to ignore archived repositoriesfalse
IGNORE_CONTRIBUTED_TO_REPOSboolWhether to ignore repositories you've contributed tofalse
IGNORE_LINES_CHANGEDboolWhether to ignore lines of code changed in statisticsfalse
IGNORE_REPO_VIEWSboolWhether to ignore repository view countsfalse
WEBHOOK_URLstringURL for webhook notifications""
ANIMATIONboolWhether to enable animation in the SVG cardsfalse

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.