Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^(revert: )?(feat|fix|docs|refactor|test|chore|ci|build)(|!)(\(.+\))?: .{1,50}(\n){2}(Changelog:){1}( Added| Changed| Deprecated| Fixed| Security)?
/

Description

Check if the git message has a Changelog trailer following the keepachangelog standard.

Submitted by anonymous - 2 years ago