generate_changelog.commits.first_matching

first_matching#

generate_changelog.commits.first_matching(actions, commit)[source]#

Return the first section that matches the given commit summary.

Parameters:
  • actions (list) – A mapping of section names to a list of regular expressions for matching.

  • commit (CommitContext) – The commit context to evaluate

Return type:

Optional[str]

Returns:

The name of the section.