Crate subject_classifier
source · [−]Expand description
Library for classifying a commit by it’s subject. Tries hard to recognize the subject type according to the commit message. Supports Conventional Commits Standard v1.0.0
use subject_classifier::Subject;
let subject = subject_classifier::Subject::from("feat(Stuff): Add a new feature XYZ");
println!("Icon: {}, scope {:?}, msg: {}",
subject.icon(),
subject.scope(),
subject.description());
Enums
Classified subject
Represents different subtree operations encoded in the commit message.
The type of the commit