generate_changelog.commits.generate_commit_context

generate_commit_context#

generate_changelog.commits.generate_commit_context(commit, config, version_metadata_func)[source]#

Create the renderable context for this commit.

The summary and body are processed through their pipelines, and a category is assigned.

Parameters:
  • commit (Commit) – The original commit data

  • config (Configuration) – The configuration to use

  • version_metadata_func (Optional[Callable]) – An optional callable to set version metadata while processing

Return type:

CommitContext

Returns:

The render-able commit context