Semantic-release plugin to generate changelog content with conventional-changelog
A generator that renders release notes from commit history while honoring host-specific link conventions for issues and commits, with optional overrides.
#42 and gh-99, release notes hyperlink those references to the repository's issues path, link commit hashes via the commit path, and include a compare link between previous and next tags when both tags exist. @testissue path and commit hashes via the commits path, and leave prefixes unsupported by that host (for example, gh-7) as plain text. @test@generates
export interface ReleaseNotesInput {
/**
* Git repository URL.
*/
repoUrl: string;
/**
* Commits to include with message and hash.
*/
commits: Array<{ message: string; hash: string }>;
/**
* Previous release metadata, optional.
*/
lastRelease?: { gitTag?: string; gitHead?: string };
/**
* Upcoming release metadata with version and tag/head.
*/
nextRelease: { version: string; gitTag?: string; gitHead?: string };
/**
* Optional overrides for host-aware linking.
*/
linkOptions?: {
host?: string;
issueKeyword?: string;
commitKeyword?: string;
enableCompare?: boolean;
enableReferences?: boolean;
};
/**
* Optional working directory for package data lookup.
*/
cwd?: string;
}
/**
* Generate release notes string with host-aware issue/commit links.
*/
export function buildReleaseNotes(input: ReleaseNotesInput): Promise<string>;Generates release notes using host-aware issue/commit link defaults with optional overrides.
@satisfied-by
tessl i tessl/npm-semantic-release--release-notes-generator@14.0.0docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10