Community Patterns

Community Library Entry

1

Regular Expression
Created·2025-10-06 13:11
Flavor·Python

r"
\A(?P<type>feat|fix|ci|chore|docs|test|style|refactor|build|perf|revert)(?:\((?P<scope>.+?)\))?(?P<breaking>!)?:\s(?P<subject>.+)(?:\n\n(?P<body>[\s\S]*?))?(?:\n\n(?P<breaking_change>^BREAKING\sCHANGE:\s[\s\S]+))?\Z
"
gm
Open regex in editor

Description

Convetional commits regex

Submitted by anonymous