Regular Expressions 101

Community Patterns

Strip Azure Devops merge commit for fit changelog

0

Regular Expression
PCRE (PHP <7.3)

/
(?:\(Merged PR \d+: \))?([a-zA-Z]+)(?:\(([\w$\.\-*\s]*)\))?\!?:(.*)
/
g

Description

Using the right headerPattern that can correctly parse either the merge message or the commit message I was able to workaround the issue

Submitted by anonymous - 2 years ago