Skip to content

Changelog Configuration ​

Reference of the changelog options - root changelog, commit bodies, format command, commit types, dependency updates and the contributors. The changelog key holds rootChangelog, includeCommitBody and formatCmd; the other options are top-level keys. For what a changelog contains and how it is built, see Changelog. The title of a changelog section and the text of an empty one are templates.

ts
import { defineConfig } from 'relizy'

export default defineConfig({
  changelog: {
    formatCmd: 'pnpm prettier --write {{files}}',
  },
  types: {
    feat: { title: '✨ Features', semver: 'minor' },
    chore: false,
  },
  excludeAuthors: ['renovate[bot]'],
})

rootChangelog ​

  • Type: boolean
  • Default: true
  • CLI: --no-root-changelog

Write the CHANGELOG.md of the root, with the changes of every package, in addition to the changelog of each package. A version group can override it.

includeCommitBody ​

  • Type: boolean
  • Default: true

Include the body of the commits in the entries, without its git trailers (Co-authored-by:, Signed-off-by:, Closes #12...) nor the "Generated with" line of the AI tools. A BREAKING CHANGE: footer is kept. A version group can override it.

formatCmd ​

  • Type: string | false
  • Default: the formatter detected
  • CLI: --format-cmd <cmd>, --no-format-cmd

Command run from the root after the changelogs are written (not run in dry-run). {{files}} is replaced by the paths of the changelogs written, quoted: eslint --fix {{files}} formats only them, without touching the rest of the project.

Without it, relizy formats the changelogs written with the first formatter found in the dependencies of the root package.json:

DependencyCommand
@biomejs/biomebiome format --write --files-ignore-unknown=true --no-errors-on-unmatched
prettierprettier --write --ignore-unknown --no-error-on-unmatched-pattern
oxfmtoxfmt --no-error-on-unmatched-pattern
dprintdprint fmt --allow-no-files
eslinteslint --fix --no-warn-ignored

The command runs with the package manager (pnpm exec, yarn, bunx, npx), and its failure is only a warning: the changelogs stay as written. The failure of a formatCmd you set stops the release. false (or --no-format-cmd) formats nothing.

types ​

  • Type: Record<string, { title: string, semver?: 'major' | 'minor' | 'patch' } | false>
  • Default: see the table

The commit types: the title of their section in the changelog and the bump they trigger. A type without semver is listed in the changelog without triggering a bump; a type absent from types is ignored. A breaking commit (! or BREAKING CHANGE:) of a listed type triggers a major. See Semver Convention.

TypeTitleBump
feat🚀 Enhancementsminor
perf🔥 Performancepatch
fix🩹 Fixespatch
refactor💅 Refactorspatch
docs📖 Documentationpatch
build📦 Buildpatch
types🌊 Typespatch
chore🏡 Chorenone
examples🏀 Examplesnone
test✅ Testsnone
style🎨 Stylesnone
ci🤖 CInone

The entries are merged by type: an entry of the config replaces the default entry of its type entirely (docs: { title: 'Docs' } no longer bumps a patch), the other default types are kept. false leaves the commits of the type out of the changelog and of the bump. The sections follow the order of types: the default types first, then the types added by the config. relizy commitlint accepts these types (see type-enum).

includeDepsCommits ​

  • Type: boolean
  • Default: false

Keep the chore(deps) commits, the dependency updates of Renovate or Dependabot, like the other chore commits: listed in the changelogs, and bumping when chore has a semver. They are left out by default, as the chore(release) commits always are (a breaking one is kept).

Renovate's config:recommended commits the updates of dependencies as fix(deps), which are already listed and bump a patch, and the other updates (dev dependencies, lockfile) as chore(deps). Turn it on when all the updates should show up:

ts
import { defineConfig } from 'relizy'

export default defineConfig({
  includeDepsCommits: true,
})

excludeAuthors ​

  • Type: string[]
  • Default: []

Names or emails (matched as substrings) left out of the contributors of the changelog and of the Slack posts. Their commits stay in the changelog. The bots ([bot]) and the AI tools co-authoring commits (Claude <[email protected]>, Cursor, GitHub Copilot...) are never credited.

noAuthors ​

  • Type: boolean
  • Default: false

Do not list the contributors in the changelogs, the provider releases and the Slack posts.

hideAuthorEmail ​

  • Type: boolean
  • Default: false

Do not show the email of a contributor without GitHub profile in the changelog.

repo ​

The repository of the links of the changelog (commits, compare links, issues) is repo.