Skip to content

🎫 GitHub badge which counts the number of repositories

Notifications You must be signed in to change notification settings

TobseF/github-badge

Repository files navigation

🎫 GitHub Repository Counter Badge

This is a GitHub-Badge SVG graphic which shows the number of repository of a user. The counter gets automatically updated by a GitHub CI workflow.

github-repo-count

⭐ Features

⭐ Customizable
⭐ SVG graphic
⭐ Always up-to-date
⭐ Image hosted by GitHub
⭐ Git-based stats history
⭐ No API key is needed

📖 How it works

This update-badge-script.js Node.js script reads the GitHub user API and writes the badge stats into an SVG template file (github-repo-count-template.svg). If the generated badge is newer then the file in the repository, it commits the new generated github-repo-count.svg to this GIT repository. The pipeline gets triggered by a cron job, which automatically updates the image every midnight.

You can link the generated file by:
https://raw.githubusercontent.com/$userName$/github-badge/master/github-repo-count.svg (replace $userName$)

🛠 Config

The script can be configured to generate a badge for any user:

About

🎫 GitHub badge which counts the number of repositories

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published