git-analytics
Analyze Git repository statistics, commit history, and contributor activity to gain insights into project development patterns and team contributions.
Instructions
Git analytics and statistics tool for repository analysis. Supports stats, commits, and contributors operations. Provides comprehensive analytics for Git repositories.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
action | Yes | The analytics operation to perform | |
author | No | Filter commits by author (for commits operation) | |
branch | No | Specific branch to analyze (default: current branch) | |
committer | No | Filter commits by committer (for commits operation) | |
excludePaths | No | Paths to exclude from analysis | |
format | No | Output format for results | |
grep | No | Search in commit messages (for commits operation) | |
groupBy | No | Group statistics by time period (for stats operation) | |
includeFileTypes | No | Include file type analysis (for stats operation) | |
includeMerges | No | Include merge commits in analysis | |
includePaths | No | Specific paths to include in analysis | |
includeStats | No | Include file change statistics (for commits operation) | |
limit | No | Maximum number of results to return | |
minCommits | No | Minimum commits threshold (for contributors operation) | |
owner | No | Repository owner (for remote operations) | |
projectPath | Yes | Absolute path to the project directory | |
provider | No | Provider for enhanced remote analytics (optional) | |
ref | No | Specific ref to analyze (commit, tag, etc.) | |
repo | No | Repository name (for remote operations) | |
since | No | Start date for analysis (ISO date or relative like "1 week ago") | |
sortBy | No | Sort contributors by field (for contributors operation) | |
until | No | End date for analysis (ISO date or relative like "yesterday") |
Input Schema (JSON Schema)
{
"properties": {
"action": {
"description": "The analytics operation to perform",
"enum": [
"stats",
"commits",
"contributors"
],
"type": "string"
},
"author": {
"description": "Filter commits by author (for commits operation)",
"type": "string"
},
"branch": {
"description": "Specific branch to analyze (default: current branch)",
"type": "string"
},
"committer": {
"description": "Filter commits by committer (for commits operation)",
"type": "string"
},
"excludePaths": {
"description": "Paths to exclude from analysis",
"items": {
"type": "string"
},
"type": "array"
},
"format": {
"description": "Output format for results",
"enum": [
"json",
"csv",
"summary"
],
"type": "string"
},
"grep": {
"description": "Search in commit messages (for commits operation)",
"type": "string"
},
"groupBy": {
"description": "Group statistics by time period (for stats operation)",
"enum": [
"day",
"week",
"month",
"year"
],
"type": "string"
},
"includeFileTypes": {
"description": "Include file type analysis (for stats operation)",
"type": "boolean"
},
"includeMerges": {
"description": "Include merge commits in analysis",
"type": "boolean"
},
"includePaths": {
"description": "Specific paths to include in analysis",
"items": {
"type": "string"
},
"type": "array"
},
"includeStats": {
"description": "Include file change statistics (for commits operation)",
"type": "boolean"
},
"limit": {
"description": "Maximum number of results to return",
"type": "number"
},
"minCommits": {
"description": "Minimum commits threshold (for contributors operation)",
"type": "number"
},
"owner": {
"description": "Repository owner (for remote operations)",
"type": "string"
},
"projectPath": {
"description": "Absolute path to the project directory",
"type": "string"
},
"provider": {
"description": "Provider for enhanced remote analytics (optional)",
"enum": [
"github",
"gitea",
"both"
],
"type": "string"
},
"ref": {
"description": "Specific ref to analyze (commit, tag, etc.)",
"type": "string"
},
"repo": {
"description": "Repository name (for remote operations)",
"type": "string"
},
"since": {
"description": "Start date for analysis (ISO date or relative like \"1 week ago\")",
"type": "string"
},
"sortBy": {
"description": "Sort contributors by field (for contributors operation)",
"enum": [
"commits",
"additions",
"deletions",
"name"
],
"type": "string"
},
"until": {
"description": "End date for analysis (ISO date or relative like \"yesterday\")",
"type": "string"
}
},
"required": [
"action",
"projectPath"
],
"type": "object"
}