generate_changelog.actions.matching.SummaryRegexMatch
SummaryRegexMatch#
- class generate_changelog.actions.matching.SummaryRegexMatch[source]#
Matches the commit summary using a regular expression.
If
pattern
isNone
all commits will match.Example
In
.changelog-config.yaml
commit_classifiers: - action: SummaryRegexMatch category: New kwargs: pattern: (?i)^(?:new|add)[^\n]*$
- __call__(commit)[source]#
Does the commit summary match the pattern?
- Return type:
- Parameters:
commit (CommitContext) –