Skip to content

GitInsights appears to be a tool for analyzing Git repositories, providing insights into various aspects of the repository, such as contributors, commit statistics, and other metrics.

Notifications You must be signed in to change notification settings

awcodify/GitInsights

Repository files navigation

GitInsights

Git Insights is a tool that provides a summary of your GitHub profile, including language usage in repositories.

GitHub Action

Automatically update your README.md with Git Insights using the following GitHub Action workflow:

# .github/workflows/update-readme.yml

name: Update Readme

on:
  schedule:
    - cron: '0 0 * * *' # Run daily at midnight (UTC)
  workflow_dispatch: # Trigger manually if needed

jobs:
  update_readme:
    runs-on: ubuntu-latest

    steps:
    - name: Checkout code
      uses: actions/checkout@v2
      
    - name: Download and run GitInsight
      run: |
        wget https://github.com/awcodify/GitInsights/releases/download/v0.1.0/GitInsights -O GitInsights
        chmod +x GitInsights
        ./GitInsights

        # Commit and push changes
        git config --local user.email "awcodify@gmail.com"
        git config --local user.name "awcodify"
        git add .
        git commit -m "Update README.md from GitInsights"
        git push
      env:
        GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

Ensure you have added the GH_TOKEN secret with the necessary permissions.

Manual Execution

You can also run Git Insights manually. Clone the repository and execute the following command:

go run main.go

Command-Line Options

By default, GitInsights excludes forked repositories from analysis. To include forks:

./GitInsights --include-forks

Or with go run:

go run main.go --include-forks

You can limit the number of languages displayed in the language statistics (default is 10):

./GitInsights --max-visible-language 5

Or with go run:

go run main.go --max-visible-language 5

Combine multiple options:

./GitInsights --include-forks --max-visible-language 15

Authentication

Make sure you already logged in to Github with:

gh auth login

export GITHUB_TOKEN=$(gh auth token)

Metrics

  • Language Usage: Provides a breakdown of the languages used across your repositories.
  • Most productive day and time
  • (Under development, and need your contribution!)

Sample Result

Profile Stats


🎯 Quick Stats


Account Age
9 years 6 months

Current Streak
2 days

Longest Streak
5 days

⚡ Productivity Insights


Most Productive Day
💚 Thursday

Peak Hours
08:00 - 09:00

📈 Weekly Activity

🌙 Monday     ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░  112 commits
🔥 Tuesday    ████████████████████████████░░  188 commits
💎 Wednesday  ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░  130 commits
💚 Thursday   ██████████████████████████████  201 commits
🎉 Friday     ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░  111 commits
🌟 Saturday   ▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░   80 commits
☀️ Sunday     ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░   41 commits

💻 Language Distribution

TypeScript JavaScript Go Elixir Ruby

📊 Detailed Breakdown
🔷 TypeScript ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░  44.07%
🟨 JavaScript ▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░  27.15%
🔵 Go         ▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░  15.14%
💧 Elixir     ▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░   5.91%
💎 Ruby       ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░   3.25%
🐍 Python     ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░   2.99%
🟢 Vim Script ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░   0.91%
🐚 Shell      ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░   0.26%
💻 Makefile   ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░   0.21%
💻 Dockerfile ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░   0.07%
💻 Other      ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░   0.03%

📅 Last updated: Thursday, October 30, 2025 at 10:14 AM

⚡ Generated with GitInsights

About

GitInsights appears to be a tool for analyzing Git repositories, providing insights into various aspects of the repository, such as contributors, commit statistics, and other metrics.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages