{"id":15610430,"url":"https://github.com/awcodify/gitinsights","last_synced_at":"2025-03-29T14:44:46.550Z","repository":{"id":206716984,"uuid":"717541942","full_name":"awcodify/GitInsights","owner":"awcodify","description":"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. ","archived":false,"fork":false,"pushed_at":"2024-03-12T13:52:44.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T15:48:00.019Z","etag":null,"topics":["analytics","git","insights"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/awcodify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-11T19:30:15.000Z","updated_at":"2023-11-12T09:57:56.000Z","dependencies_parsed_at":"2024-03-12T14:52:03.598Z","dependency_job_id":"d909b397-e5b6-4d6a-ab39-85209db3c7d7","html_url":"https://github.com/awcodify/GitInsights","commit_stats":{"total_commits":40,"total_committers":1,"mean_commits":40.0,"dds":0.0,"last_synced_commit":"58305ddfb21f6ab2cf89ea4d3bb2823b27c95ad9"},"previous_names":["awcodify/gitinsights"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awcodify%2FGitInsights","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awcodify%2FGitInsights/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awcodify%2FGitInsights/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awcodify%2FGitInsights/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/awcodify","download_url":"https://codeload.github.com/awcodify/GitInsights/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246200296,"owners_count":20739563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analytics","git","insights"],"created_at":"2024-10-03T06:01:34.617Z","updated_at":"2025-03-29T14:44:46.527Z","avatar_url":"https://github.com/awcodify.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitInsights\n\nGit Insights is a tool that provides a summary of your GitHub profile, including language usage in repositories.\n\n## Usage\n\nAdd this snippet into your README.md\n\n```\n\u003c!--START_SECTION:GitInsights--\u003e\n\u003c!--END_SECTION:GitInsights--\u003e\n```\n\n### GitHub Action\n\nAutomatically update your README.md with Git Insights using the following GitHub Action workflow:\n\n```yaml\n# .github/workflows/update-readme.yml\n\nname: Update Readme\n\non:\n  schedule:\n    - cron: '0 0 * * *' # Run daily at midnight (UTC)\n  workflow_dispatch: # Trigger manually if needed\n\njobs:\n  update_readme:\n    runs-on: ubuntu-latest\n\n    steps:\n    - name: Checkout code\n      uses: actions/checkout@v2\n      \n    - name: Download and run GitInsight\n      run: |\n        wget https://github.com/awcodify/GitInsights/releases/download/v0.1.0/GitInsights -O GitInsights\n        chmod +x GitInsights\n        ./GitInsights\n\n        # Commit and push changes\n        git config --local user.email \"awcodify@gmail.com\"\n        git config --local user.name \"awcodify\"\n        git add .\n        git commit -m \"Update README.md from GitInsights\"\n        git push\n      env:\n        GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}\n\n```\nEnsure you have added the GH_TOKEN secret with the necessary permissions.\n\n## Manual Execution\nYou can also run Git Insights manually. Clone the repository and execute the following command:\n\n```bash\ngo run main.go\n```\nMake sure you already logged in to Github with:\n```bash\ngh auth login\n\nexport GITHUB_TOKEN=$(gh auth token)\n```\n## Metrics\n\n* Language Usage: Provides a breakdown of the languages used across your repositories.\n* Most productive day and time\n* (Under development, and need your contribution!)\n\n## Sample Result\n\n\u003c!--START_SECTION:GitInsights--\u003e\n### Git Insight\n\nLanguage Statistics:\n```\nRuby       [█████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░] 32.97%\nGo         [█████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 24.38%\nHTML       [█████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 14.20%\nCSS        [█████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 12.65%\nJavaScript [████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 11.71%\nOther      [█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░]  4.09%\n```\n\n📅 Most Productive Day: Monday\n\n⌚️ Most Productive Hour: 14:00 - 15:00\n\u003c!--END_SECTION:GitInsights--\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawcodify%2Fgitinsights","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fawcodify%2Fgitinsights","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawcodify%2Fgitinsights/lists"}