relizy / generateChangelog
Function: generateChangelog()
generateChangelog(
__namedParameters):Promise<string>
Defined in: src/core/changelog.ts:192
Generate the changelog string for a single package.
- Fetches commits internally using
changelog: true, so types that only declare atitle(e.g.docs: { title: '📖 Documentation' }) are included even though they don't trigger a version bump. Callers must providepkg.path—pkg.commitsis no longer consumed. includetoggles which sections appear in the output.compareLinkandcontributorsare also skipped whenminifyis true.transformBodyis invoked between body rendering and final assembly, used by provider releases to plug an AI rewrite step on the body only.
Parameters
__namedParameters
config
dryRun
boolean
include?
minify?
boolean
newVersion
string
pkg
{ fromTag?: string; name: string; newVersion?: string; path: string; }
pkg.fromTag?
string
pkg.name
string
pkg.newVersion?
string
pkg.path
string
transformBody?
(body) => string | Promise<string>
Returns
Promise<string>