Skip to main content

classify_commits

Function classify_commits 

Source
pub fn classify_commits(
    commits: &[CommitSummary],
    policy: &CommitModel,
) -> Vec<(CommitSummary, BumpLevel)>
Expand description

Classify commits into their bump levels based on commit type and policy. Implements the versioning algorithm from SRS §5.2:

  • breaking (has ! or BREAKING CHANGE:) → major
  • feat → minor
  • others → patch