generate method

Future<ChangelogInfo> generate({
  1. required String versionName,
})

Generate is the main method to generate the changelog in a String so the final user of this library can store the information in any order way that he want.

Implementation

Future<ChangelogInfo> generate({required String versionName}) async {
  var commits = await fetcher.fetch();
  var sections = _filterChain.filter(commits: commits);
  var changelog =
      ChangelogInfo(versionName: versionName, rawSection: sections);
  return changelog;
}