MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / renderCommitBullet

Function renderCommitBullet

scripts/draft-changelog.ts:377–385  ·  view source on GitHub ↗
(commit: ParsedCommit)

Source from the content-addressed store, hash-verified

375}
376
377export function renderCommitBullet(commit: ParsedCommit) {
378 const scope = commit.scope ? `**${formatScope(commit.scope)}:** ` : "";
379 const links = [`[${commit.shortSha}](${REPO_URL}/commit/${commit.sha})`];
380 if (commit.prNumber) {
381 links.push(`[#${commit.prNumber}](${REPO_URL}/pull/${commit.prNumber})`);
382 }
383
384 return `- ${scope}${capitalize(commit.summary)} (${links.join(", ")})`;
385}
386
387export function renderMdxCommitBullet(commit: ParsedCommit) {
388 const scope = commit.scope ? `**${escapeForMdx(formatScope(commit.scope))}:** ` : "";

Callers 1

Calls 2

formatScopeFunction · 0.85
capitalizeFunction · 0.70

Tested by

no test coverage detected