Function parse_subject

Source
pub fn parse_subject(
    subject: &str,
) -> (Option<String>, Option<String>, Option<String>)
Expand description

Parse a commit message subject and return the type, scope, and description.

Note that exclamation mark is not respected as the existing commitlint does not have any rules for it. See: https://commitlint.js.org/reference/rules.html