Closed DemianTinkiel closed 6 years ago
@DemianTinkiel You'd have to set a pattern that matches anything except hotfix
or [major-release]
for minorPattern
I would think.
Hi @vivin Yeah that was my first thought. Perhaps my regex foo is not as strong as I thought
majorPattern = ~/(?m)^\[major-release\]$/
patchPattern = ~/(?m)^hotfix$/
minorPattern = ~/^(?!(.*(hotfix|\[major-release\]).*))$/
1: git commit -m "normal stuff" gives me v1.0.1 and I expected v1.1.0
Perhaps ~/^(?!.*(hotfix|\[major-release\]))/
?
For me this regex works great you could change it for your use case:
minorPattern = ~/(?m)^(?!(.*(\[bump-major\]|\[bump-patch\]|\[make-new-pre-release\]|\[promote-to-release\]).*)$).*$/
@DemianTinkiel Did this fix your issue?
@vivin sorry for the really late reply. Yes issue fixed
I would like to do something like