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

Function renderMdxCommitBullet

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

Source from the content-addressed store, hash-verified

385}
386
387export function renderMdxCommitBullet(commit: ParsedCommit) {
388 const scope = commit.scope ? `**${escapeForMdx(formatScope(commit.scope))}:** ` : "";
389 const links = [`[${commit.shortSha}](${REPO_URL}/commit/${commit.sha})`];
390 if (commit.prNumber) {
391 links.push(`[#${commit.prNumber}](${REPO_URL}/pull/${commit.prNumber})`);
392 }
393
394 return `- ${scope}${escapeForMdx(capitalize(commit.summary))} (${links.join(", ")})`;
395}
396
397function renderTags(commits: ParsedCommit[]) {
398 return ["Release", ...uniqueScopeTags(commits).slice(0, 3)];

Callers 1

Calls 3

escapeForMdxFunction · 0.85
formatScopeFunction · 0.85
capitalizeFunction · 0.70

Tested by

no test coverage detected