version_bump/plugins/release_notes

The release-notes-generator plugin.

A port of semantic-release’s @semantic-release/release-notes-generator. It implements only the generate_notes hook: given the parsed conventional commits in the context and the version of the pending release, it renders the Markdown release notes via the shared notes module.

When there is no next_release (nothing to release) the hook returns an empty string, matching semantic-release where notes are only generated for a release that is actually happening.

Values

pub fn notes_for(context: context.Context) -> String

Pure core of the hook: render the release notes for a context, or "" when there is no pending release. Kept separate from generate_notes so it can be unit-tested without constructing a Result.

pub fn plugin() -> plugin.Plugin

Build the release-notes-generator plugin. It implements generate_notes and leaves every other hook unset.

Search Document