The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import type { PullRequestChangeBreakdown } from "@t3tools/contracts"; |
| 2 | import { summarizeChangedFiles } from "@t3tools/shared/changedFileKind"; |
| 3 | import type { ProviderFileStats } from "@t3tools/source-control-core/server/PullRequestProvider"; |
| 4 | |
| 5 | export function toChangeBreakdown(stats: ProviderFileStats): PullRequestChangeBreakdown { |
| 6 | if (stats.truncated) return null; |
| 7 | return summarizeChangedFiles(stats.files); |
| 8 | } |