is_valid
Whether message is a valid Conventional Commit.
A shortcut for Commit::parse(message).is_ok(), for a commit-msg hook or a CI check that only
needs a yes or no; use Commit::parse to learn what is wrong.
Import
Section titled “Import”Cargo feature commit (enabled by default). To compile only this module:
or in Cargo.toml:
Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
message | &str | The whole commit message. |
Returns
Section titled “Returns”bool — true when the message parses.
