apply method

  1. @override
void apply({
  1. required ChangelogGenerator generator,
  2. String? exactMatchHeader,
  3. RegExp? regexHeader,
  4. 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"));
}