Skip to content

Release Notes

The [release_notes] section of knope.toml customizes how Knope renders release notes, both as changelogs and forge releases.

change_templates Knope 0.21.1+

Section titled “change_templates ”

An array of templates to customize each change entry.

knope.toml
[release_notes]
change_templates = [
"* $summary by $commit_author_name ($commit_hash)",
]

Different variables are available for different types of changes. Knope will use the first template containing only valid variables for a given change. If no template is applicable, Knope will use a default template. The default templates are equivalent to ["### $summary\n\n$details", "- $summary"], using a small Markdown section for complex changes and a single bullet for simple changes.

Every change has a summary. It’s one of:

  1. The title line (first non-empty line after the frontmatter, typically starting with a #) of a change file
  2. Everything after the : on the first line of conventional commits
  3. Everything after the : in a conventional commit footer

Only a change file can have details, they’re any content after the title line.

The name of the author of a conventional commits or the commit which introduced a change file.

Knope will skip templates containing this variable for change files that aren’t committed.

The short hash of a [conventional commit] of the commit that introduced a change file.

Knope will skip templates containing this variable for change files that aren’t committed.