(commit: ParsedCommit)
| 375 | } |
| 376 | |
| 377 | export 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 | |
| 387 | export function renderMdxCommitBullet(commit: ParsedCommit) { |
| 388 | const scope = commit.scope ? `**${escapeForMdx(formatScope(commit.scope))}:** ` : ""; |
no test coverage detected