Semantic-release plugin to generate changelog content with conventional-changelog
Convert raw repository URLs into a normalized changelog link context that captures host, owner, repository name, and link bases suitable for release note generation.
repositoryUrl "https://github.com/acme/release-notes.git", produce host "github.com", owner "acme", repository "release-notes", browseUrl "https://github.com/acme/release-notes", compareUrl "https://github.com/acme/release-notes/compare", commitUrl "https://github.com/acme/release-notes/commit", issueUrl "https://github.com/acme/release-notes/issues", and set both linkCompare and linkReferences to true by default. @testrepositoryUrl "git@github.com:team/service.git", normalize to the same values as "https://github.com/team/service" with an https scheme and no .git suffix. @testrepositoryUrl "http://github.com/edge/calc" and options { linkCompare: false, linkReferences: false }, preserve the http scheme in all generated URLs and set both toggles to false. @test@generates
/**
* Build a normalized repository context for changelog linking.
*
* @param {Object} options
* @param {string} options.repositoryUrl - Raw repository URL in any supported git format.
* @param {string} [options.host] - Override for host when not inferable from repositoryUrl.
* @param {string} [options.commit] - Override commit path segment (e.g., "changeset").
* @param {string} [options.issue] - Override issue path segment (e.g., "bugs").
* @param {boolean} [options.linkCompare] - Whether to include compare links in output.
* @param {boolean} [options.linkReferences] - Whether to hyperlink commit/issue references.
* @returns {Object} context with normalized fields:
* host, owner, repository, browseUrl, compareUrl, commitUrl, issueUrl,
* linkCompare, linkReferences.
*/
export function buildRepoContext(options);Builds repository link context and changelog-friendly URLs from git repo metadata.
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