apply method
void
apply({
- required ChangelogGenerator generator,
- String? exactMatchHeader,
- RegExp? regexHeader,
- bool strictly = false,
override
Implementation
@override
void apply(
{required ChangelogGenerator generator,
String? exactMatchHeader,
RegExp? regexHeader,
bool strictly = false}) {
generator.addFilterRule(
rule: FilterRule(headerExactMatch: "fix:", nameSection: "Fixes"));
generator.addFilterRule(
rule:
FilterRule(headerExactMatch: "feat:", nameSection: "New Feature"));
generator.addFilterRule(
rule: FilterRule(headerExactMatch: "doc:", nameSection: "Docs"));
generator.addFilterRule(
rule: FilterRule(
headerExactMatch: "fix(${generator.packageName}):",
nameSection: "Fixes"));
generator.addFilterRule(
rule: FilterRule(
headerExactMatch: "feat(${generator.packageName}):",
nameSection: "New Feature"));
generator.addFilterRule(
rule: FilterRule(
headerExactMatch: "doc(${generator.packageName}):",
nameSection: "Docs"));
}