Skip to main content

DEFAULT_COMMIT_PATTERN

Constant DEFAULT_COMMIT_PATTERN 

Source
pub const DEFAULT_COMMIT_PATTERN: &str = r"^(?P<type>\w+)(?:\((?P<scope>[^)]+)\))?(?P<breaking>!)?:\s+(?P<description>.+)";
Expand description

Default conventional commits pattern. Named groups: type, scope (optional), breaking (optional !), description.