MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / formatPullRequestBadge

Function formatPullRequestBadge

apps/kimi-code/src/utils/git/git-status.ts:329–335  ·  view source on GitHub ↗
(
  pullRequest: PullRequestInfo,
  options: FormatGitBadgeOptions = {},
)

Source from the content-addressed store, hash-verified

327}
328
329export function formatPullRequestBadge(
330 pullRequest: PullRequestInfo,
331 options: FormatGitBadgeOptions = {},
332): string {
333 const prText = `[PR#${String(pullRequest.number)}]`;
334 return options.linkPullRequest ? toTerminalHyperlink(prText, pullRequest.url) : prText;
335}
336
337export function formatGitBadge(status: GitStatus, options: FormatGitBadgeOptions = {}): string {
338 const base = formatGitBadgeBase(status);

Callers 2

formatFooterGitBadgeFunction · 0.90
formatGitBadgeFunction · 0.85

Calls 1

toTerminalHyperlinkFunction · 0.70

Tested by

no test coverage detected