Skip to main content

parse

Function parse 

Source
pub fn parse(message: &str) -> Result<ConventionalCommit, ParseError>
Expand description

Parse a commit message string into a ConventionalCommit.

Validates that the message conforms to the Conventional Commits specification: <type>[(<scope>)][!]: <description>, with optional body and footers.

The type must be lowercase ASCII ([a-z]+).