Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions git_acp/git/classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
This module provides functionality for classifying commit types and analyzing
changes in the repository to suggest appropriate commit types.

Recognized commit types:
FEAT, FIX, DOCS, STYLE, REFACTOR, TEST, CHORE, REVERT, BUILD, CI, PERF.

Two selection mechanisms are used:
- Types with file-path grouping (deterministic, via ``FILE_PATH_PATTERNS``):
DOCS, TEST, PERF, STYLE, BUILD, CI, CHORE.
- Prefix-only types (detected from the conventional commit prefix):
FEAT, FIX, REFACTOR, REVERT.

Classification Priority:
1. Message prefix (e.g., "feat:", "fix:") - highest priority
2. File path patterns - deterministic and highly accurate
Expand Down