Skip to content
/ octo-stats Public template

GitHub template repository that automates the generation and updating of GitHub statistics.

License

Notifications You must be signed in to change notification settings

nishant-sheoran/octo-stats

Repository files navigation

🀝 Quickstart Guide

  1. Fork or Use Template – Click here to create a new repository from this template.
  2. Set Up Personal Access Token (PAT) – Generate a PAT with repo and workflow permissions and add it as a secret (GHT) in your repository.
  3. Enable Workflow Permissions – Grant "Read and Write" access to GitHub Actions in Repository Settings > Actions > General.
  4. Trigger Workflow – Manually run the workflow from the Actions tab or let it execute on schedule.
  5. Embed in README – Add generated SVGs to your README for a dynamic GitHub profile.

πŸ” Octo-Stats

Octo-Stats is a GitHub template repository that automates the generation and updating of GitHub statistics for your profile using GitHub Actions.

This repo includes pre-tested workflows from various open-source projects, ensuring efficiency and minimal errors in setting up dynamic profile stats.

✨ Features

βœ… Pre-configured GitHub Actions – Automate fetching and updating GitHub stats effortlessly.
βœ… Easy Integration – Copy the template, set up your profile, and enjoy automated updates.
βœ… Dynamic Display – Your stats refresh automatically on a scheduled cron job. ⏳
βœ… Optimized Workflows – Curated workflows tested for efficiency and reliability. πŸ’‘


πŸ“Œ Example SVG Stats

Explore the stats that this template can generate:

πŸ”— For themes and customization, visit linked repositories below

πŸ–₯️ GitHub Stats

GitHub Stats

πŸ•ΉοΈ 3D Contribution Graph

3D Contribution Graph

🐍 Snake Contribution Graph

GitHub Snake Animation

πŸ”‘ Authentication & Permissions

To allow GitHub Actions to commit and push changes, follow these steps:

πŸ“ Setting Up Personal Access Token (PAT)

1️⃣ Go to Settings β†’ Developer settings β†’ Personal access tokens.
2️⃣ Click on Generate a new token (classic).
3️⃣ Select the required scopes:

  • βœ… repo β†’ Full control of private repositories.
  • βœ… workflow β†’ Allows GitHub Actions to trigger workflows.

⚠️ Important: Copy the token as it will disappear once you leave the page.

πŸ”’ Adding the Token as a Secret

1️⃣ Go to Repository Settings β†’ Secrets and Variables β†’ Actions.
2️⃣ Click New Repository Secret.
3️⃣ Name it GHT and paste the copied PAT in the input box.
4️⃣ Save it.

⚠️ Security Tip: Never expose your PAT publicly. Store it securely as it grants repo modification permissions.

βš™οΈ Grant Workflow Permissions

1️⃣ Go to your GitHub Repository Settings.
2️⃣ Navigate to Actions under Code and Automation.
3️⃣ Select General from the dropdown.
4️⃣ Scroll down to Workflow Permissions.
5️⃣ Choose Read and write permissions.
6️⃣ Save the settings. βœ…


▢️ Running Workflows

🎯 Manual Execution
1️⃣ Navigate to the Actions tab in your repository.
2️⃣ Under All Workflows, select the .yml file you want to run.
3️⃣ Click Run Workflow to manually trigger the workflow for testing.

⏳ Automated Execution
The workflows are scheduled to run automatically at defined UTC times.
After a successful run, your generated files can be embedded into your README file. πŸ“„


πŸ“© Contact

For issues or feature requests, please open an issue on GitHub. πŸš€


This repository is actively used for personal GitHub profile updates and is now shared with the community to simplify the setup process for others. πŸŽ‰

About

GitHub template repository that automates the generation and updating of GitHub statistics.

Resources

License

Code of conduct

Stars

Watchers

Forks