smart_commit_suggestion
Automatically generate structured commit message suggestions by analyzing staged changes in a repository. Provides commit type, scope, and subject line based on file patterns and affected directories.
Instructions
Intelligent commit message suggestions based on repository changes.
Uses GitPython to analyze staged changes and suggest:
- Appropriate commit type based on file patterns
- Scope based on affected directories/modules
- Subject line based on change patterns
Args: repo_path: Path to git repository analyze_changes: Whether to analyze file changes for suggestions suggest_type: Whether to suggest commit type suggest_scope: Whether to suggest scope
Returns: Dict containing intelligent commit suggestions
Input Schema
Name | Required | Description | Default |
---|---|---|---|
analyze_changes | No | ||
repo_path | Yes | ||
suggest_scope | No | ||
suggest_type | No |