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.
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:
| Dependency | Command |
|---|---|
@biomejs/biome | biome format --write --files-ignore-unknown=true --no-errors-on-unmatched |
prettier | prettier --write --ignore-unknown --no-error-on-unmatched-pattern |
oxfmt | oxfmt --no-error-on-unmatched-pattern |
dprint | dprint fmt --allow-no-files |
eslint | eslint --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.
| Type | Title | Bump |
|---|---|---|
feat | 🚀 Enhancements | minor |
perf | 🔥 Performance | patch |
fix | 🩹 Fixes | patch |
refactor | 💅 Refactors | patch |
docs | 📖 Documentation | patch |
build | 📦 Build | patch |
types | 🌊 Types | patch |
chore | 🏡 Chore | none |
examples | 🏀 Examples | none |
test | ✅ Tests | none |
style | 🎨 Styles | none |
ci | 🤖 CI | none |
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:
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.