Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/awcodify/gitinsights
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.
https://github.com/awcodify/gitinsights
analytics git insights
Last synced: 24 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/awcodify/gitinsights
- Owner: awcodify
- Created: 2023-11-11T19:30:15.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-12T13:52:44.000Z (10 months ago)
- Last Synced: 2024-10-21T22:57:10.118Z (2 months ago)
- Topics: analytics, git, insights
- Language: Go
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GitInsights
Git Insights is a tool that provides a summary of your GitHub profile, including language usage in repositories.
## Usage
Add this snippet into your README.md
```
```
### GitHub Action
Automatically update your README.md with Git Insights using the following GitHub Action workflow:
```yaml
# .github/workflows/update-readme.ymlname: Update Readme
on:
schedule:
- cron: '0 0 * * *' # Run daily at midnight (UTC)
workflow_dispatch: # Trigger manually if neededjobs:
update_readme:
runs-on: ubuntu-lateststeps:
- 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 "[email protected]"
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:```bash
go run main.go
```
Make sure you already logged in to Github with:
```bash
gh auth loginexport 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
### Git Insight
Language Statistics:
```
Ruby [█████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░] 32.97%
Go [█████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 24.38%
HTML [█████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 14.20%
CSS [█████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 12.65%
JavaScript [████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 11.71%
Other [█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 4.09%
```📅 Most Productive Day: Monday
⌚️ Most Productive Hour: 14:00 - 15:00