(commit: ParsedCommit)
| 385 | } |
| 386 | |
| 387 | export 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 | |
| 397 | function renderTags(commits: ParsedCommit[]) { |
| 398 | return ["Release", ...uniqueScopeTags(commits).slice(0, 3)]; |
no test coverage detected