Skip to main content

release_notes

Function release_notes 

Source
pub fn release_notes(
    tag: &str,
    commits: &[ConventionalCommit],
    truncated: bool,
) -> String
Expand description

Render markdown release notes grouped by commit kind, listing breaking changes first and omitting empty sections.

A release with no breaking change, feature, or fix (a forced or manual bump over ci:, build:, chore:, docs: and similar commits) would otherwise get an empty body, so its other conventional commits are listed under “Maintenance” instead. Releases that do have features or fixes keep listing only those, and subjects that are not conventional commits are never listed.